Class: Mollie::Organization

Inherits:
Base
  • Object
show all
Defined in:
lib/mollie/organization.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

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

Returns the value of attribute _links.



3
4
5
# File 'lib/mollie/organization.rb', line 3

def _links
  @_links
end

#addressObject

Returns the value of attribute address.



3
4
5
# File 'lib/mollie/organization.rb', line 3

def address
  @address
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/mollie/organization.rb', line 3

def email
  @email
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/mollie/organization.rb', line 3

def id
  @id
end

#localeObject

Returns the value of attribute locale.



3
4
5
# File 'lib/mollie/organization.rb', line 3

def locale
  @locale
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/mollie/organization.rb', line 3

def name
  @name
end

#registration_numberObject

Returns the value of attribute registration_number.



3
4
5
# File 'lib/mollie/organization.rb', line 3

def registration_number
  @registration_number
end

#vat_numberObject

Returns the value of attribute vat_number.



3
4
5
# File 'lib/mollie/organization.rb', line 3

def vat_number
  @vat_number
end

#vat_regulationObject

Returns the value of attribute vat_regulation.



3
4
5
# File 'lib/mollie/organization.rb', line 3

def vat_regulation
  @vat_regulation
end

Class Method Details

.current(options = {}) ⇒ Object



15
16
17
# File 'lib/mollie/organization.rb', line 15

def self.current(options = {})
  get('me', options)
end

Instance Method Details

#dashboard_urlObject



23
24
25
# File 'lib/mollie/organization.rb', line 23

def dashboard_url
  Util.extract_url(links, 'dashboard')
end