Class: ManageIQ::API::Client::ServerInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#applianceObject (readonly)

Returns the value of attribute appliance.



7
8
9
# File 'lib/manageiq/api/client/server_info.rb', line 7

def appliance
  @appliance
end

#buildObject (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_hrefObject (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_hrefObject (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

#versionObject (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_hrefObject (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