Class: Ravelin::VoucherRedemption

Inherits:
RavelinObject show all
Defined in:
lib/ravelin/voucher_redemption.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

#currencyObject

Returns the value of attribute currency.



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

def currency
  @currency
end

#customObject

Returns the value of attribute custom.



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

def custom
  @custom
end

#expiryObject

Returns the value of attribute expiry.



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

def expiry
  @expiry
end

#failure_reasonObject

Returns the value of attribute failure_reason.



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

def failure_reason
  @failure_reason
end

#failure_sourceObject

Returns the value of attribute failure_source.



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

def failure_source
  @failure_source
end

#payment_method_idObject

Returns the value of attribute payment_method_id.



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

def payment_method_id
  @payment_method_id
end

#redemption_timeObject

Returns the value of attribute redemption_time.



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

def redemption_time
  @redemption_time
end

#referrer_idObject

Returns the value of attribute referrer_id.



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

def referrer_id
  @referrer_id
end

#successObject

Returns the value of attribute success.



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

def success
  @success
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end

#voucher_codeObject

Returns the value of attribute voucher_code.



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

def voucher_code
  @voucher_code
end

#voucher_typeObject

Returns the value of attribute voucher_type.



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

def voucher_type
  @voucher_type
end

Instance Method Details

#location=(obj) ⇒ Object



18
19
20
# File 'lib/ravelin/voucher_redemption.rb', line 18

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