Class: Ebisu::PriceLabel

Inherits:
Object
  • Object
show all
Defined in:
lib/ebisu/models/price_label.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_priceObject

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_priceObject

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_priceObject

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_priceObject

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_inclusiveObject

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_endObject

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_startObject

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_priceObject

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