Class: Ravelin::Voucher
- Inherits:
-
RavelinObject
- Object
- RavelinObject
- Ravelin::Voucher
- Defined in:
- lib/ravelin/voucher.rb
Instance Attribute Summary collapse
-
#creation_time ⇒ Object
Returns the value of attribute creation_time.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#custom ⇒ Object
Returns the value of attribute custom.
-
#expiry ⇒ Object
Returns the value of attribute expiry.
-
#referral_value ⇒ Object
Returns the value of attribute referral_value.
-
#referrer_id ⇒ Object
Returns the value of attribute referrer_id.
-
#value ⇒ Object
Returns the value of attribute value.
-
#voucher_code ⇒ Object
Returns the value of attribute voucher_code.
-
#voucher_id ⇒ Object
Returns the value of attribute voucher_id.
-
#voucher_type ⇒ Object
Returns the value of attribute voucher_type.
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_time ⇒ Object
Returns the value of attribute creation_time.
3 4 5 |
# File 'lib/ravelin/voucher.rb', line 3 def creation_time @creation_time end |
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/ravelin/voucher.rb', line 3 def currency @currency end |
#custom ⇒ Object
Returns the value of attribute custom.
3 4 5 |
# File 'lib/ravelin/voucher.rb', line 3 def custom @custom end |
#expiry ⇒ Object
Returns the value of attribute expiry.
3 4 5 |
# File 'lib/ravelin/voucher.rb', line 3 def expiry @expiry end |
#referral_value ⇒ Object
Returns the value of attribute referral_value.
3 4 5 |
# File 'lib/ravelin/voucher.rb', line 3 def referral_value @referral_value end |
#referrer_id ⇒ Object
Returns the value of attribute referrer_id.
3 4 5 |
# File 'lib/ravelin/voucher.rb', line 3 def referrer_id @referrer_id end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/ravelin/voucher.rb', line 3 def value @value end |
#voucher_code ⇒ Object
Returns the value of attribute voucher_code.
3 4 5 |
# File 'lib/ravelin/voucher.rb', line 3 def voucher_code @voucher_code end |
#voucher_id ⇒ Object
Returns the value of attribute voucher_id.
3 4 5 |
# File 'lib/ravelin/voucher.rb', line 3 def voucher_id @voucher_id end |
#voucher_type ⇒ Object
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 |