Class: OracleCloud::Shape
- Inherits:
-
Object
- Object
- OracleCloud::Shape
- Defined in:
- lib/oraclecloud/shape.rb
Instance Attribute Summary collapse
-
#shape_data ⇒ Object
readonly
Returns the value of attribute shape_data.
Instance Method Summary collapse
- #cpus ⇒ Object
-
#initialize(shape_data) ⇒ Shape
constructor
A new instance of Shape.
- #io ⇒ Object
- #name ⇒ Object
- #ram ⇒ Object
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_data ⇒ Object (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
#cpus ⇒ Object
34 35 36 |
# File 'lib/oraclecloud/shape.rb', line 34 def cpus shape_data['cpus'] end |
#io ⇒ Object
38 39 40 |
# File 'lib/oraclecloud/shape.rb', line 38 def io shape_data['io'] end |
#name ⇒ Object
26 27 28 |
# File 'lib/oraclecloud/shape.rb', line 26 def name shape_data['name'] end |
#ram ⇒ Object
30 31 32 |
# File 'lib/oraclecloud/shape.rb', line 30 def ram shape_data['ram'] end |