Sha256: 40bf3760d7d53f19d44483d19312999ac35cf1328fb2a526c54ba72296b8430d

Contents?: true

Size: 392 Bytes

Versions: 10

Compression:

Stored size: 392 Bytes

Contents

module Mollie
  class Organization < Base
    attr_accessor :id,
                  :name,
                  :email,
                  :address,
                  :registration_number,
                  :vat_number

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

    def address=(address)
      @address = OpenStruct.new(address) if address.is_a?(Hash)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mollie-api-ruby-4.3.1 lib/mollie/organization.rb
mollie-api-ruby-4.3.0 lib/mollie/organization.rb
mollie-api-ruby-4.2.0 lib/mollie/organization.rb
mollie-api-ruby-4.1.5 lib/mollie/organization.rb
mollie-api-ruby-4.1.4 lib/mollie/organization.rb
mollie-api-ruby-4.1.3 lib/mollie/organization.rb
mollie-api-ruby-4.1.2 lib/mollie/organization.rb
mollie-api-ruby-4.1.1 lib/mollie/organization.rb
mollie-api-ruby-4.1.0 lib/mollie/organization.rb
mollie-api-ruby-4.0.1 lib/mollie/organization.rb