Class: ManageIQ::API::Client::ServerInfo
- Inherits:
-
Object
- Object
- ManageIQ::API::Client::ServerInfo
- Defined in:
- lib/manageiq/api/client/server_info.rb
Instance Attribute Summary collapse
-
#appliance ⇒ Object
readonly
Returns the value of attribute appliance.
-
#build ⇒ Object
readonly
Returns the value of attribute build.
-
#region_href ⇒ Object
readonly
Returns the value of attribute region_href.
-
#server_href ⇒ Object
readonly
Returns the value of attribute server_href.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
-
#zone_href ⇒ Object
readonly
Returns the value of attribute zone_href.
Instance Method Summary collapse
-
#initialize(server_info) ⇒ ServerInfo
constructor
A new instance of ServerInfo.
Constructor Details
#initialize(server_info) ⇒ ServerInfo
Returns a new instance of ServerInfo.
12 13 14 15 |
# File 'lib/manageiq/api/client/server_info.rb', line 12 def initialize(server_info) @version, @build, @appliance, @server_href, @zone_href, @region_href = server_info.values_at("version", "build", "appliance", "server_href", "zone_href", "region_href") end |
Instance Attribute Details
#appliance ⇒ Object (readonly)
Returns the value of attribute appliance.
7 8 9 |
# File 'lib/manageiq/api/client/server_info.rb', line 7 def appliance @appliance end |
#build ⇒ Object (readonly)
Returns the value of attribute build.
6 7 8 |
# File 'lib/manageiq/api/client/server_info.rb', line 6 def build @build end |
#region_href ⇒ Object (readonly)
Returns the value of attribute region_href.
10 11 12 |
# File 'lib/manageiq/api/client/server_info.rb', line 10 def region_href @region_href end |
#server_href ⇒ Object (readonly)
Returns the value of attribute server_href.
8 9 10 |
# File 'lib/manageiq/api/client/server_info.rb', line 8 def server_href @server_href end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/manageiq/api/client/server_info.rb', line 5 def version @version end |
#zone_href ⇒ Object (readonly)
Returns the value of attribute zone_href.
9 10 11 |
# File 'lib/manageiq/api/client/server_info.rb', line 9 def zone_href @zone_href end |