Class: Mollie::Onboarding
Instance Attribute Summary collapse
-
#_links ⇒ Object
(also: #links)
Returns the value of attribute _links.
-
#can_receive_payments ⇒ Object
Returns the value of attribute can_receive_payments.
-
#can_receive_settlements ⇒ Object
Returns the value of attribute can_receive_settlements.
-
#name ⇒ Object
Returns the value of attribute name.
-
#signed_up_at ⇒ Object
Returns the value of attribute signed_up_at.
-
#status ⇒ Object
Returns the value of attribute status.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
all, #assign_attributes, cancel, create, #delete, delete, get, id_param, #initialize, parent_id, request, resource_name, update, #update
Constructor Details
This class inherits a constructor from Mollie::Base
Instance Attribute Details
#_links ⇒ Object Also known as: links
Returns the value of attribute _links.
3 4 5 |
# File 'lib/mollie/onboarding.rb', line 3 def _links @_links end |
#can_receive_payments ⇒ Object
Returns the value of attribute can_receive_payments.
3 4 5 |
# File 'lib/mollie/onboarding.rb', line 3 def can_receive_payments @can_receive_payments end |
#can_receive_settlements ⇒ Object
Returns the value of attribute can_receive_settlements.
3 4 5 |
# File 'lib/mollie/onboarding.rb', line 3 def can_receive_settlements @can_receive_settlements end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/mollie/onboarding.rb', line 3 def name @name end |
#signed_up_at ⇒ Object
Returns the value of attribute signed_up_at.
3 4 5 |
# File 'lib/mollie/onboarding.rb', line 3 def signed_up_at @signed_up_at end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/mollie/onboarding.rb', line 3 def status @status end |
Class Method Details
.me(options = {}) ⇒ Object
12 13 14 15 |
# File 'lib/mollie/onboarding.rb', line 12 def self.me( = {}) response = Client.instance.perform_http_call('GET', 'onboarding', 'me', {}, ) new(response) end |
.submit(data = {}, options = {}) ⇒ Object
17 18 19 20 |
# File 'lib/mollie/onboarding.rb', line 17 def self.submit(data = {}, = {}) Client.instance.perform_http_call('POST', 'onboarding', 'me', data, ) nil end |
Instance Method Details
#dashboard ⇒ Object
22 23 24 |
# File 'lib/mollie/onboarding.rb', line 22 def dashboard Util.extract_url(links, 'dashboard') end |
#organization(options = {}) ⇒ Object
26 27 28 29 30 |
# File 'lib/mollie/onboarding.rb', line 26 def organization( = {}) resource_url = Util.extract_url(links, 'organization') response = Client.instance.perform_http_call('GET', resource_url, nil, {}, ) Organization.new(response) end |