Class: Awsum::Ec2::ReservedInstance
- Defined in:
- lib/awsum/ec2/reserved_instance.rb
Instance Attribute Summary collapse
-
#availability_zone ⇒ Object
readonly
Returns the value of attribute availability_zone.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#fixed_price ⇒ Object
readonly
Returns the value of attribute fixed_price.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#instance_count ⇒ Object
readonly
Returns the value of attribute instance_count.
-
#instance_type ⇒ Object
readonly
Returns the value of attribute instance_type.
-
#product_description ⇒ Object
readonly
Returns the value of attribute product_description.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#usage_price ⇒ Object
readonly
Returns the value of attribute usage_price.
Instance Method Summary collapse
-
#initialize(ec2, id, instance_type, availability_zone, start, duration, fixed_price, usage_price, instance_count, product_description, state) ⇒ ReservedInstance
constructor
A new instance of ReservedInstance.
Constructor Details
#initialize(ec2, id, instance_type, availability_zone, start, duration, fixed_price, usage_price, instance_count, product_description, state) ⇒ ReservedInstance
Returns a new instance of ReservedInstance.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 9 def initialize(ec2, id, instance_type, availability_zone, start, duration, fixed_price, usage_price, instance_count, product_description, state) @ec2 = ec2 @id = id @instance_type = instance_type @availability_zone = availability_zone @start = start @duration = duration @fixed_price = fixed_price @usage_price = usage_price @instance_count = instance_count @product_description = product_description @state = state end |
Instance Attribute Details
#availability_zone ⇒ Object (readonly)
Returns the value of attribute availability_zone.
7 8 9 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 7 def availability_zone @availability_zone end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
7 8 9 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 7 def duration @duration end |
#fixed_price ⇒ Object (readonly)
Returns the value of attribute fixed_price.
7 8 9 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 7 def fixed_price @fixed_price end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 7 def id @id end |
#instance_count ⇒ Object (readonly)
Returns the value of attribute instance_count.
7 8 9 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 7 def instance_count @instance_count end |
#instance_type ⇒ Object (readonly)
Returns the value of attribute instance_type.
7 8 9 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 7 def instance_type @instance_type end |
#product_description ⇒ Object (readonly)
Returns the value of attribute product_description.
7 8 9 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 7 def product_description @product_description end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
7 8 9 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 7 def start @start end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
7 8 9 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 7 def state @state end |
#usage_price ⇒ Object (readonly)
Returns the value of attribute usage_price.
7 8 9 |
# File 'lib/awsum/ec2/reserved_instance.rb', line 7 def usage_price @usage_price end |