Class: Paggi::Customer
- Includes:
- Rest::Create, Rest::Update
- Defined in:
- lib/paggi/customer.rb
Instance Attribute Summary collapse
-
#cards ⇒ Object
Returns the value of attribute cards.
-
#description ⇒ Object
Returns the value of attribute description.
-
#document ⇒ Object
Returns the value of attribute document.
-
#email ⇒ Object
Returns the value of attribute email.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Customer
constructor
A new instance of Customer.
- #to_json ⇒ Object
Methods included from Rest::Update
Methods included from Rest::Create
Methods inherited from Resource
build, class_name, opts, request, url, #valid?
Constructor Details
Instance Attribute Details
#cards ⇒ Object
Returns the value of attribute cards.
6 7 8 |
# File 'lib/paggi/customer.rb', line 6 def cards @cards end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/paggi/customer.rb', line 6 def description @description end |
#document ⇒ Object
Returns the value of attribute document.
6 7 8 |
# File 'lib/paggi/customer.rb', line 6 def document @document end |
#email ⇒ Object
Returns the value of attribute email.
6 7 8 |
# File 'lib/paggi/customer.rb', line 6 def email @email end |
#metadata ⇒ Object
Returns the value of attribute metadata.
6 7 8 |
# File 'lib/paggi/customer.rb', line 6 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/paggi/customer.rb', line 6 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
6 7 8 |
# File 'lib/paggi/customer.rb', line 6 def phone @phone end |
Instance Method Details
#to_json ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/paggi/customer.rb', line 13 def to_json super.merge!(super([ :phone, :name, :document, :email, :metadata, :description, :cards ])) end |