Class: OracleCloud::Shape

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(shape_data) ⇒ Shape

Returns a new instance of Shape.



22
23
24
# File 'lib/oraclecloud/shape.rb', line 22

def initialize(shape_data)
  @shape_data = shape_data
end

Instance Attribute Details

#shape_dataObject (readonly)

Returns the value of attribute shape_data.



20
21
22
# File 'lib/oraclecloud/shape.rb', line 20

def shape_data
  @shape_data
end

Instance Method Details

#cpusObject



34
35
36
# File 'lib/oraclecloud/shape.rb', line 34

def cpus
  shape_data['cpus']
end

#ioObject



38
39
40
# File 'lib/oraclecloud/shape.rb', line 38

def io
  shape_data['io']
end

#nameObject



26
27
28
# File 'lib/oraclecloud/shape.rb', line 26

def name
  shape_data['name']
end

#ramObject



30
31
32
# File 'lib/oraclecloud/shape.rb', line 30

def ram
  shape_data['ram']
end