Class: Paggi::Card
- Includes:
- Rest::Create, Rest::Update
- Defined in:
- lib/paggi/card.rb
Instance Attribute Summary collapse
-
#card_alias ⇒ Object
Returns the value of attribute card_alias.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#cvc ⇒ Object
Returns the value of attribute cvc.
-
#cvc_check ⇒ Object
Returns the value of attribute cvc_check.
-
#default ⇒ Object
Returns the value of attribute default.
-
#month ⇒ Object
Returns the value of attribute month.
-
#name ⇒ Object
Returns the value of attribute name.
-
#number ⇒ Object
Returns the value of attribute number.
-
#year ⇒ Object
Returns the value of attribute year.
Attributes inherited from Resource
Class Method Summary collapse
Methods included from Rest::Update
Methods included from Rest::Create
Methods inherited from Resource
build, class_name, #initialize, opts, request, #to_json, url, #valid?
Constructor Details
This class inherits a constructor from Paggi::Resource
Instance Attribute Details
#card_alias ⇒ Object
Returns the value of attribute card_alias.
6 7 8 |
# File 'lib/paggi/card.rb', line 6 def card_alias @card_alias end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
6 7 8 |
# File 'lib/paggi/card.rb', line 6 def customer_id @customer_id end |
#cvc ⇒ Object
Returns the value of attribute cvc.
6 7 8 |
# File 'lib/paggi/card.rb', line 6 def cvc @cvc end |
#cvc_check ⇒ Object
Returns the value of attribute cvc_check.
6 7 8 |
# File 'lib/paggi/card.rb', line 6 def cvc_check @cvc_check end |
#default ⇒ Object
Returns the value of attribute default.
6 7 8 |
# File 'lib/paggi/card.rb', line 6 def default @default end |
#month ⇒ Object
Returns the value of attribute month.
6 7 8 |
# File 'lib/paggi/card.rb', line 6 def month @month end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/paggi/card.rb', line 6 def name @name end |
#number ⇒ Object
Returns the value of attribute number.
6 7 8 |
# File 'lib/paggi/card.rb', line 6 def number @number end |
#year ⇒ Object
Returns the value of attribute year.
6 7 8 |
# File 'lib/paggi/card.rb', line 6 def year @year end |
Class Method Details
.check(params) ⇒ Object
14 15 16 |
# File 'lib/paggi/card.rb', line 14 def check(params) update(params) end |
.check!(params) ⇒ Object
10 11 12 |
# File 'lib/paggi/card.rb', line 10 def check!(params) update!(params) end |