Class: CreditCard
- Inherits:
-
Object
- Object
- CreditCard
- Defined in:
- lib/mundipagg/CreditCardTransaction/credit_card.rb
Instance Attribute Summary collapse
-
#BillingAddress ⇒ Object
Returns the value of attribute BillingAddress.
-
#CreditCardBrand ⇒ Object
Returns the value of attribute CreditCardBrand.
-
#CreditCardNumber ⇒ Object
Returns the value of attribute CreditCardNumber.
-
#ExpMonth ⇒ Object
Returns the value of attribute ExpMonth.
-
#ExpYear ⇒ Object
Returns the value of attribute ExpYear.
-
#HolderName ⇒ Object
Returns the value of attribute HolderName.
-
#InstantBuyKey ⇒ Object
Returns the value of attribute InstantBuyKey.
-
#SecurityCode ⇒ Object
Returns the value of attribute SecurityCode.
Instance Method Summary collapse
-
#initialize ⇒ CreditCard
constructor
A new instance of CreditCard.
- #to_json ⇒ Object
Constructor Details
#initialize ⇒ CreditCard
Returns a new instance of CreditCard.
19 20 21 |
# File 'lib/mundipagg/CreditCardTransaction/credit_card.rb', line 19 def initialize @BillingAddress = BillingAddress.new end |
Instance Attribute Details
#BillingAddress ⇒ Object
Returns the value of attribute BillingAddress.
17 18 19 |
# File 'lib/mundipagg/CreditCardTransaction/credit_card.rb', line 17 def BillingAddress @BillingAddress end |
#CreditCardBrand ⇒ Object
Returns the value of attribute CreditCardBrand.
15 16 17 |
# File 'lib/mundipagg/CreditCardTransaction/credit_card.rb', line 15 def CreditCardBrand @CreditCardBrand end |
#CreditCardNumber ⇒ Object
Returns the value of attribute CreditCardNumber.
5 6 7 |
# File 'lib/mundipagg/CreditCardTransaction/credit_card.rb', line 5 def CreditCardNumber @CreditCardNumber end |
#ExpMonth ⇒ Object
Returns the value of attribute ExpMonth.
11 12 13 |
# File 'lib/mundipagg/CreditCardTransaction/credit_card.rb', line 11 def ExpMonth @ExpMonth end |
#ExpYear ⇒ Object
Returns the value of attribute ExpYear.
13 14 15 |
# File 'lib/mundipagg/CreditCardTransaction/credit_card.rb', line 13 def ExpYear @ExpYear end |
#HolderName ⇒ Object
Returns the value of attribute HolderName.
7 8 9 |
# File 'lib/mundipagg/CreditCardTransaction/credit_card.rb', line 7 def HolderName @HolderName end |
#InstantBuyKey ⇒ Object
Returns the value of attribute InstantBuyKey.
3 4 5 |
# File 'lib/mundipagg/CreditCardTransaction/credit_card.rb', line 3 def InstantBuyKey @InstantBuyKey end |
#SecurityCode ⇒ Object
Returns the value of attribute SecurityCode.
9 10 11 |
# File 'lib/mundipagg/CreditCardTransaction/credit_card.rb', line 9 def SecurityCode @SecurityCode end |
Instance Method Details
#to_json ⇒ Object
23 24 25 26 27 |
# File 'lib/mundipagg/CreditCardTransaction/credit_card.rb', line 23 def to_json hash = {} instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) } hash end |