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.



16
17
18
19
# File 'lib/manageiq/api/client/server_info.rb', line 16

def initialize(server_info)
  @version, @build, @appliance, @server_href, @zone_href, @region_href, @release, @time, @enterprise_href, @plugins =
    server_info.values_at("version", "build", "appliance", "server_href", "zone_href", "region_href", "release", "time", "enterprise_href", "plugins")
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

#enterprise_href ⇒ Object (readonly)

Returns the value of attribute enterprise_href.



13
14
15
# File 'lib/manageiq/api/client/server_info.rb', line 13

def enterprise_href
  @enterprise_href
end

#plugins ⇒ Object (readonly)

Returns the value of attribute plugins.



14
15
16
# File 'lib/manageiq/api/client/server_info.rb', line 14

def plugins
  @plugins
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

#release ⇒ Object (readonly)

Returns the value of attribute release.



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

def release
  @release
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

#time ⇒ Object (readonly)

Returns the value of attribute time.



12
13
14
# File 'lib/manageiq/api/client/server_info.rb', line 12

def time
  @time
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