Class: Moip::BillingInfo
Instance Attribute Summary collapse
-
#expiration_month ⇒ Object
Returns the value of attribute expiration_month.
-
#expiration_year ⇒ Object
Returns the value of attribute expiration_year.
-
#holder_name ⇒ Object
Returns the value of attribute holder_name.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
Methods inherited from Model
Instance Attribute Details
#expiration_month ⇒ Object
Returns the value of attribute expiration_month.
3 4 5 |
# File 'lib/moip/models/billing_info.rb', line 3 def expiration_month @expiration_month end |
#expiration_year ⇒ Object
Returns the value of attribute expiration_year.
3 4 5 |
# File 'lib/moip/models/billing_info.rb', line 3 def expiration_year @expiration_year end |
#holder_name ⇒ Object
Returns the value of attribute holder_name.
3 4 5 |
# File 'lib/moip/models/billing_info.rb', line 3 def holder_name @holder_name end |
#number ⇒ Object
Returns the value of attribute number.
3 4 5 |
# File 'lib/moip/models/billing_info.rb', line 3 def number @number end |
Instance Method Details
#attributes ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/moip/models/billing_info.rb', line 12 def attributes { "holder_name" => holder_name, "number" => number, "expiration_month" => expiration_month, "expiration_year" => expiration_year } end |
#to_hash ⇒ Object
26 27 28 |
# File 'lib/moip/models/billing_info.rb', line 26 def to_hash { :credit_card => self.serializable_hash } end |
#to_json ⇒ Object
21 22 23 24 |
# File 'lib/moip/models/billing_info.rb', line 21 def to_json hash = { :credit_card => self.serializable_hash } hash.to_json end |