Class: ManageIQ::API::Client::ApiVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/manageiq/api/client/api_version.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version_spec) ⇒ ApiVersion

Returns a new instance of ApiVersion.



8
9
10
# File 'lib/manageiq/api/client/api_version.rb', line 8

def initialize(version_spec)
  @name, @href = version_spec.values_at("name", "href")
end

Instance Attribute Details

#hrefObject (readonly)

Returns the value of attribute href.



6
7
8
# File 'lib/manageiq/api/client/api_version.rb', line 6

def href
  @href
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/manageiq/api/client/api_version.rb', line 5

def name
  @name
end