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.
37 38 39 40 41 42 43 44 |
# File 'lib/ebisu/models/price_label.rb', line 37 def initialize(price_label) @is_inclusive = price_label['taxable'] @fixed_price = price_label['fixedPrice'] @default_price = price_label['defaultPrice'] @sale_price = price_label['salePrice'] @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.
23 24 25 |
# File 'lib/ebisu/models/price_label.rb', line 23 def base_fixed_price @base_fixed_price end |
#base_sale_price ⇒ Object
Returns the value of attribute base_sale_price.
27 28 29 |
# File 'lib/ebisu/models/price_label.rb', line 27 def base_sale_price @base_sale_price end |
#default_price ⇒ Object
Returns the value of attribute default_price.
15 16 17 |
# File 'lib/ebisu/models/price_label.rb', line 15 def default_price @default_price end |
#fixed_price ⇒ Object
Returns the value of attribute fixed_price.
11 12 13 |
# File 'lib/ebisu/models/price_label.rb', line 11 def fixed_price @fixed_price end |
#is_inclusive ⇒ Object
Returns the value of attribute is_inclusive.
7 8 9 |
# File 'lib/ebisu/models/price_label.rb', line 7 def is_inclusive @is_inclusive end |
#period_end ⇒ Object
Returns the value of attribute period_end.
35 36 37 |
# File 'lib/ebisu/models/price_label.rb', line 35 def period_end @period_end end |
#period_start ⇒ Object
Returns the value of attribute period_start.
31 32 33 |
# File 'lib/ebisu/models/price_label.rb', line 31 def period_start @period_start end |
#sale_price ⇒ Object
Returns the value of attribute sale_price.
19 20 21 |
# File 'lib/ebisu/models/price_label.rb', line 19 def sale_price @sale_price end |