Class: Google::Apis::VersionhistoryV1::Version

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameString

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

Returns:

  • (String)


285
286
287
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 285

def name
  @name
end

#versionString

String containing just the version number. e.g. "84.0.4147.38" Corresponds to the JSON property version

Returns:

  • (String)


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