Class: Awsum::Ec2::ReservedInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/awsum/ec2/reserved_instance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_zoneObject (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

#durationObject (readonly)

Returns the value of attribute duration.



7
8
9
# File 'lib/awsum/ec2/reserved_instance.rb', line 7

def duration
  @duration
end

#fixed_priceObject (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

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/awsum/ec2/reserved_instance.rb', line 7

def id
  @id
end

#instance_countObject (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_typeObject (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_descriptionObject (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

#startObject (readonly)

Returns the value of attribute start.



7
8
9
# File 'lib/awsum/ec2/reserved_instance.rb', line 7

def start
  @start
end

#stateObject (readonly)

Returns the value of attribute state.



7
8
9
# File 'lib/awsum/ec2/reserved_instance.rb', line 7

def state
  @state
end

#usage_priceObject (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