Class: Conekta::Payee
- Inherits:
-
Resource
- Object
- Hash
- ConektaObject
- Resource
- Conekta::Payee
- Includes:
- Operations::Create, Operations::CreateMember, Operations::CustomAction, Operations::Delete, Operations::Find, Operations::Update, Operations::Where
- Defined in:
- lib/conekta/payee.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#default_destination_id ⇒ Object
Returns the value of attribute default_destination_id.
-
#email ⇒ Object
Returns the value of attribute email.
-
#livemode ⇒ Object
Returns the value of attribute livemode.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
Attributes inherited from Resource
Attributes inherited from ConektaObject
Instance Method Summary collapse
Methods included from Operations::CreateMember
Methods included from Operations::CustomAction
Methods included from Operations::Update
Methods included from Operations::Delete
Methods included from Operations::Create
Methods included from Operations::Where
handle_type_of_paging, included
Methods included from Operations::Find
Methods inherited from Resource
#_url, _url, #create_member_with_relation, #initialize, underscored_class
Methods inherited from ConektaObject
class_name, #class_name, #create_attr, #first, #initialize, #inspect, #last, #set_val, #to_s, #unset_key
Constructor Details
This class inherits a constructor from Conekta::Resource
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
11 12 13 |
# File 'lib/conekta/payee.rb', line 11 def created_at @created_at end |
#default_destination_id ⇒ Object
Returns the value of attribute default_destination_id.
11 12 13 |
# File 'lib/conekta/payee.rb', line 11 def default_destination_id @default_destination_id end |
#email ⇒ Object
Returns the value of attribute email.
11 12 13 |
# File 'lib/conekta/payee.rb', line 11 def email @email end |
#livemode ⇒ Object
Returns the value of attribute livemode.
11 12 13 |
# File 'lib/conekta/payee.rb', line 11 def livemode @livemode end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/conekta/payee.rb', line 11 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
11 12 13 |
# File 'lib/conekta/payee.rb', line 11 def phone @phone end |
Instance Method Details
#create_payout_method(params) ⇒ Object
26 27 28 |
# File 'lib/conekta/payee.rb', line 26 def create_payout_method(params) self.create_member('payout_methods', params) end |
#load_from(response = nil) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/conekta/payee.rb', line 14 def load_from(response=nil) if response super end payee = self self.payout_methods.each do |k,v| if !v.respond_to? :deleted or !v.deleted v.create_attr('payee', payee) self.payout_methods.set_val(k,v) end end end |