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.



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

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)


278
279
280
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 278

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)


283
284
285
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 283

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



290
291
292
293
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 290

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @version = args[:version] if args.key?(:version)
end