Class: Google::Apis::VersionhistoryV1::Version
- Inherits:
-
Object
- Object
- Google::Apis::VersionhistoryV1::Version
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/versionhistory_v1/classes.rb,
lib/google/apis/versionhistory_v1/representations.rb,
lib/google/apis/versionhistory_v1/representations.rb
Overview
Each Version is owned by a Channel. A Version only displays the Version number (e.g. 84.0.4147.38). A Version owns a collection of releases.
Instance Attribute Summary collapse
-
#name ⇒ String
Version name.
-
#version ⇒ String
String containing just the version number.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Version
constructor
A new instance of Version.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Version
Returns a new instance of Version.
292 293 294 |
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 292 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Version name. Format is "product
/platforms/platform
/channels/channel
/
versions/version
" e.g. "chrome/platforms/win/channels/beta/versions/84.0.
4147.38"
Corresponds to the JSON property name
285 286 287 |
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 285 def name @name end |
#version ⇒ String
String containing just the version number. e.g. "84.0.4147.38"
Corresponds to the JSON property version
290 291 292 |
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 290 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
297 298 299 300 |
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 297 def update!(**args) @name = args[:name] if args.key?(:name) @version = args[:version] if args.key?(:version) end |