Class: Aws::RiKanjoo::Base
- Defined in:
- lib/aws/rikanjo.rb,
lib/aws/rikanjo/base.rb
Instance Attribute Summary collapse
-
#instance_type ⇒ Object
readonly
Returns the value of attribute instance_type.
-
#multiaz ⇒ Object
readonly
Returns the value of attribute multiaz.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#ri_util ⇒ Object
readonly
Returns the value of attribute ri_util.
Instance Method Summary collapse
-
#initialize(mode = 'ec2', region, instance_type, ri_util, multiaz) ⇒ Base
constructor
A new instance of Base.
Methods inherited from Calc
#calc_year_cost, #om_get_hr_price, #ri_get_hr_price_and_upfront, #total_cost_year
Constructor Details
#initialize(mode = 'ec2', region, instance_type, ri_util, multiaz) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/aws/rikanjo/base.rb', line 10 def initialize(mode = 'ec2', region, instance_type, ri_util, multiaz) if mode == 'ec2' @mode = Aws::RiKanjoo::Ec2.new(region, instance_type, ri_util) elsif mode == 'rds' @mode = Aws::RiKanjoo::Rds.new(region, instance_type, ri_util, multiaz) end @region = region @instance_type = instance_type @ri_util = ri_util @om_info = {} @ri_info = {} end |
Instance Attribute Details
#instance_type ⇒ Object (readonly)
Returns the value of attribute instance_type.
8 9 10 |
# File 'lib/aws/rikanjo/base.rb', line 8 def instance_type @instance_type end |
#multiaz ⇒ Object (readonly)
Returns the value of attribute multiaz.
8 9 10 |
# File 'lib/aws/rikanjo/base.rb', line 8 def multiaz @multiaz end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
8 9 10 |
# File 'lib/aws/rikanjo/base.rb', line 8 def region @region end |
#ri_util ⇒ Object (readonly)
Returns the value of attribute ri_util.
8 9 10 |
# File 'lib/aws/rikanjo/base.rb', line 8 def ri_util @ri_util end |