Class: Bmc::Sdk::LongServer

Inherits:
Object
  • Object
show all
Defined in:
lib/dtos.rb

Overview

LongServer is used to transmit details on fully specified server responses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, status, hostname, description, privateIPAddresses, publicIPAddresses, os, type, location, cpu, ram, storage) ⇒ LongServer

Returns a new instance of LongServer.



26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/dtos.rb', line 26

def initialize(id, status, hostname, description, privateIPAddresses, publicIPAddresses, os, type, location, cpu, ram, storage)
  @id = id
  @status = status
  @hostname = hostname
  @description = description
  @privateIPAddresses = privateIPAddresses
  @publicIPAddresses = publicIPAddresses
  @os = os
  @type = type
  @location = location
  @cpu = cpu
  @ram = ram
  @storage = storage
end

Instance Attribute Details

#cpuObject

Returns the value of attribute cpu.



25
26
27
# File 'lib/dtos.rb', line 25

def cpu
  @cpu
end

#descriptionObject

Returns the value of attribute description.



25
26
27
# File 'lib/dtos.rb', line 25

def description
  @description
end

#hostnameObject

Returns the value of attribute hostname.



25
26
27
# File 'lib/dtos.rb', line 25

def hostname
  @hostname
end

#idObject

Returns the value of attribute id.



25
26
27
# File 'lib/dtos.rb', line 25

def id
  @id
end

#locationObject

Returns the value of attribute location.



25
26
27
# File 'lib/dtos.rb', line 25

def location
  @location
end

#osObject

Returns the value of attribute os.



25
26
27
# File 'lib/dtos.rb', line 25

def os
  @os
end

#privateIPAddressesObject

Returns the value of attribute privateIPAddresses.



25
26
27
# File 'lib/dtos.rb', line 25

def privateIPAddresses
  @privateIPAddresses
end

#publicIPAddressesObject

Returns the value of attribute publicIPAddresses.



25
26
27
# File 'lib/dtos.rb', line 25

def publicIPAddresses
  @publicIPAddresses
end

#ramObject

Returns the value of attribute ram.



25
26
27
# File 'lib/dtos.rb', line 25

def ram
  @ram
end

#statusObject

Returns the value of attribute status.



25
26
27
# File 'lib/dtos.rb', line 25

def status
  @status
end

#storageObject

Returns the value of attribute storage.



25
26
27
# File 'lib/dtos.rb', line 25

def storage
  @storage
end

#typeObject

Returns the value of attribute type.



25
26
27
# File 'lib/dtos.rb', line 25

def type
  @type
end

Instance Method Details

#to_json(*a) ⇒ Object



40
41
42
43
44
# File 'lib/dtos.rb', line 40

def to_json(*a)
  {id: @id, status: @status, hostname: @hostname, description: @description, privateIpAddresses: @privateIPAddresses, 
    publicIPAddresses: @publicIpAddresses, os: @os, type: @type, location: @location, cpu: @cpu, ram: @ram, 
    storage: @storage }.to_json(*a)
end