Class: Ravelin::Voucher

Inherits:
RavelinObject show all
Defined in:
lib/ravelin/voucher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RavelinObject

attr_accessor, attr_required, #initialize, required_attributes, #serializable_hash, #validate

Constructor Details

This class inherits a constructor from Ravelin::RavelinObject

Instance Attribute Details

#creation_timeObject

Returns the value of attribute creation_time.



3
4
5
# File 'lib/ravelin/voucher.rb', line 3

def creation_time
  @creation_time
end

#currencyObject

Returns the value of attribute currency.



3
4
5
# File 'lib/ravelin/voucher.rb', line 3

def currency
  @currency
end

#customObject

Returns the value of attribute custom.



3
4
5
# File 'lib/ravelin/voucher.rb', line 3

def custom
  @custom
end

#expiryObject

Returns the value of attribute expiry.



3
4
5
# File 'lib/ravelin/voucher.rb', line 3

def expiry
  @expiry
end

#referral_valueObject

Returns the value of attribute referral_value.



3
4
5
# File 'lib/ravelin/voucher.rb', line 3

def referral_value
  @referral_value
end

#referrer_idObject

Returns the value of attribute referrer_id.



3
4
5
# File 'lib/ravelin/voucher.rb', line 3

def referrer_id
  @referrer_id
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/ravelin/voucher.rb', line 3

def value
  @value
end

#voucher_codeObject

Returns the value of attribute voucher_code.



3
4
5
# File 'lib/ravelin/voucher.rb', line 3

def voucher_code
  @voucher_code
end

#voucher_idObject

Returns the value of attribute voucher_id.



3
4
5
# File 'lib/ravelin/voucher.rb', line 3

def voucher_id
  @voucher_id
end

#voucher_typeObject

Returns the value of attribute voucher_type.



3
4
5
# File 'lib/ravelin/voucher.rb', line 3

def voucher_type
  @voucher_type
end

Instance Method Details

#location=(obj) ⇒ Object



16
17
18
# File 'lib/ravelin/voucher.rb', line 16

def location=(obj)
  @location = Ravelin::Location.new(obj)
end