Class: Pin::Models::Refund
- Inherits:
-
Object
- Object
- Pin::Models::Refund
- Defined in:
- lib/pin/models/refund.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#charge ⇒ Object
Returns the value of attribute charge.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#status_message ⇒ Object
Returns the value of attribute status_message.
-
#success ⇒ Object
Returns the value of attribute success.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(params) ⇒ Refund
constructor
A new instance of Refund.
Constructor Details
#initialize(params) ⇒ Refund
Returns a new instance of Refund.
4 5 6 |
# File 'lib/pin/models/refund.rb', line 4 def initialize(params) params.each { |k, v| instance_variable_set("@#{k}", v) unless v.nil? } end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
2 3 4 |
# File 'lib/pin/models/refund.rb', line 2 def amount @amount end |
#charge ⇒ Object
Returns the value of attribute charge.
2 3 4 |
# File 'lib/pin/models/refund.rb', line 2 def charge @charge end |
#created_at ⇒ Object
Returns the value of attribute created_at.
2 3 4 |
# File 'lib/pin/models/refund.rb', line 2 def created_at @created_at end |
#currency ⇒ Object
Returns the value of attribute currency.
2 3 4 |
# File 'lib/pin/models/refund.rb', line 2 def currency @currency end |
#error_message ⇒ Object
Returns the value of attribute error_message.
2 3 4 |
# File 'lib/pin/models/refund.rb', line 2 def end |
#status_message ⇒ Object
Returns the value of attribute status_message.
2 3 4 |
# File 'lib/pin/models/refund.rb', line 2 def end |
#success ⇒ Object
Returns the value of attribute success.
2 3 4 |
# File 'lib/pin/models/refund.rb', line 2 def success @success end |
#token ⇒ Object
Returns the value of attribute token.
2 3 4 |
# File 'lib/pin/models/refund.rb', line 2 def token @token end |