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.



9
10
11
12
# File 'lib/manageiq/api/client/server_info.rb', line 9

def initialize(server_info)
  @version, @build, @appliance =
    server_info.values_at("version", "build", "appliance")
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

#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