Class: ManageIQ::API::Client::ApiVersion
- Inherits:
-
Object
- Object
- ManageIQ::API::Client::ApiVersion
- Defined in:
- lib/manageiq/api/client/api_version.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(version_spec) ⇒ ApiVersion
constructor
A new instance of ApiVersion.
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
#href ⇒ Object (readonly)
Returns the value of attribute href.
6 7 8 |
# File 'lib/manageiq/api/client/api_version.rb', line 6 def href @href end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/manageiq/api/client/api_version.rb', line 5 def name @name end |