Class: Lightrail::LightrailFund
- Inherits:
-
LightrailObject
- Object
- LightrailObject
- Lightrail::LightrailFund
- Defined in:
- lib/lightrail_stripe/wrappers/lightrail_fund.rb
Instance Attribute Summary collapse
-
#cardId ⇒ Object
Returns the value of attribute cardId.
-
#codeLastFour ⇒ Object
Returns the value of attribute codeLastFour.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#dateCreated ⇒ Object
Returns the value of attribute dateCreated.
-
#giftbitUserId ⇒ Object
Returns the value of attribute giftbitUserId.
-
#transactionAccessMethod ⇒ Object
Returns the value of attribute transactionAccessMethod.
-
#transactionId ⇒ Object
Returns the value of attribute transactionId.
-
#transactionType ⇒ Object
Returns the value of attribute transactionType.
-
#userSuppliedId ⇒ Object
Returns the value of attribute userSuppliedId.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Attribute Details
#cardId ⇒ Object
Returns the value of attribute cardId.
3 4 5 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 3 def cardId @cardId end |
#codeLastFour ⇒ Object
Returns the value of attribute codeLastFour.
3 4 5 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 3 def codeLastFour @codeLastFour end |
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 3 def currency @currency end |
#dateCreated ⇒ Object
Returns the value of attribute dateCreated.
3 4 5 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 3 def dateCreated @dateCreated end |
#giftbitUserId ⇒ Object
Returns the value of attribute giftbitUserId.
3 4 5 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 3 def giftbitUserId @giftbitUserId end |
#transactionAccessMethod ⇒ Object
Returns the value of attribute transactionAccessMethod.
3 4 5 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 3 def transactionAccessMethod @transactionAccessMethod end |
#transactionId ⇒ Object
Returns the value of attribute transactionId.
3 4 5 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 3 def transactionId @transactionId end |
#transactionType ⇒ Object
Returns the value of attribute transactionType.
3 4 5 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 3 def transactionType @transactionType end |
#userSuppliedId ⇒ Object
Returns the value of attribute userSuppliedId.
3 4 5 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 3 def userSuppliedId @userSuppliedId end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 3 def value @value end |
Class Method Details
.create(fund_object) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/lightrail_stripe/wrappers/lightrail_fund.rb', line 5 def self.create(fund_object) Lightrail::Validator.validate_fund_object!(fund_object) fund_object_to_send_to_lightrail = Lightrail::Translator.fund_params_stripe_to_lightrail(fund_object) response = Lightrail::Card.fund(fund_object_to_send_to_lightrail) self.new(response) end |