Class: Awsum::Ec2::ReservedInstancesOffering

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ec2, id, instance_type, availability_zone, duration, fixed_price, usage_price, product_description) ⇒ ReservedInstancesOffering

Returns a new instance of ReservedInstancesOffering.



8
9
10
11
12
13
14
15
16
17
# File 'lib/awsum/ec2/reserved_instances_offering.rb', line 8

def initialize(ec2, id, instance_type, availability_zone, duration, fixed_price, usage_price, product_description)
  @ec2 = ec2
  @id = id
  @instance_type = instance_type
  @availability_zone = availability_zone
  @duration = duration
  @fixed_price = fixed_price
  @usage_price = usage_price
  @product_description = product_description
end

Instance Attribute Details

#availability_zoneObject (readonly)

Returns the value of attribute availability_zone.



6
7
8
# File 'lib/awsum/ec2/reserved_instances_offering.rb', line 6

def availability_zone
  @availability_zone
end

#durationObject (readonly)

Returns the value of attribute duration.



6
7
8
# File 'lib/awsum/ec2/reserved_instances_offering.rb', line 6

def duration
  @duration
end

#fixed_priceObject (readonly)

Returns the value of attribute fixed_price.



6
7
8
# File 'lib/awsum/ec2/reserved_instances_offering.rb', line 6

def fixed_price
  @fixed_price
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/awsum/ec2/reserved_instances_offering.rb', line 6

def id
  @id
end

#instance_typeObject (readonly)

Returns the value of attribute instance_type.



6
7
8
# File 'lib/awsum/ec2/reserved_instances_offering.rb', line 6

def instance_type
  @instance_type
end

#product_descriptionObject (readonly)

Returns the value of attribute product_description.



6
7
8
# File 'lib/awsum/ec2/reserved_instances_offering.rb', line 6

def product_description
  @product_description
end

#usage_priceObject (readonly)

Returns the value of attribute usage_price.



6
7
8
# File 'lib/awsum/ec2/reserved_instances_offering.rb', line 6

def usage_price
  @usage_price
end