Class: Ebisu::PriceLabel
- Inherits:
-
Object
- Object
- Ebisu::PriceLabel
- Defined in:
- lib/ebisu/models/price_label.rb
Instance Attribute Summary collapse
-
#base_fixed_price ⇒ Object
Returns the value of attribute base_fixed_price.
-
#base_sale_price ⇒ Object
Returns the value of attribute base_sale_price.
-
#default_price ⇒ Object
Returns the value of attribute default_price.
-
#fixed_price ⇒ Object
Returns the value of attribute fixed_price.
-
#is_inclusive ⇒ Object
Returns the value of attribute is_inclusive.
-
#period_end ⇒ Object
Returns the value of attribute period_end.
-
#period_start ⇒ Object
Returns the value of attribute period_start.
-
#sale_price ⇒ Object
Returns the value of attribute sale_price.
Instance Method Summary collapse
-
#initialize(price_label) ⇒ PriceLabel
constructor
A new instance of PriceLabel.
Constructor Details
#initialize(price_label) ⇒ PriceLabel
Returns a new instance of PriceLabel.
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/ebisu/models/price_label.rb', line 35 def initialize(price_label) @is_inclusive = price_label['taxIncluded'] == 'true' @fixed_price = price_label['FixedPrice'] @default_price = price_label['DefaultPrice'] @sale_price = price_label['SalePrice'] @base_fixed_price = price_label['BaseFixedPrice'] @base_sale_price = price_label['BaseSalePrice'] @period_start = price_label['PeriodStart'] @period_end = price_label['PeriodEnd'] end |
Instance Attribute Details
#base_fixed_price ⇒ Object
Returns the value of attribute base_fixed_price.
21 22 23 |
# File 'lib/ebisu/models/price_label.rb', line 21 def base_fixed_price @base_fixed_price end |
#base_sale_price ⇒ Object
Returns the value of attribute base_sale_price.
25 26 27 |
# File 'lib/ebisu/models/price_label.rb', line 25 def base_sale_price @base_sale_price end |
#default_price ⇒ Object
Returns the value of attribute default_price.
13 14 15 |
# File 'lib/ebisu/models/price_label.rb', line 13 def default_price @default_price end |
#fixed_price ⇒ Object
Returns the value of attribute fixed_price.
9 10 11 |
# File 'lib/ebisu/models/price_label.rb', line 9 def fixed_price @fixed_price end |
#is_inclusive ⇒ Object
Returns the value of attribute is_inclusive.
5 6 7 |
# File 'lib/ebisu/models/price_label.rb', line 5 def is_inclusive @is_inclusive end |
#period_end ⇒ Object
Returns the value of attribute period_end.
33 34 35 |
# File 'lib/ebisu/models/price_label.rb', line 33 def period_end @period_end end |
#period_start ⇒ Object
Returns the value of attribute period_start.
29 30 31 |
# File 'lib/ebisu/models/price_label.rb', line 29 def period_start @period_start end |
#sale_price ⇒ Object
Returns the value of attribute sale_price.
17 18 19 |
# File 'lib/ebisu/models/price_label.rb', line 17 def sale_price @sale_price end |