Sha256: ed0b34026f00c1c8c02636f72c6bccd0ba26afe03706c8d32103ef8e797cad74

Contents?: true

Size: 470 Bytes

Versions: 6

Compression:

Stored size: 470 Bytes

Contents

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

    alias links _links

    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

6 entries across 6 versions & 1 rubygems

Version Path
mollie-api-ruby-4.6.2 lib/mollie/organization.rb
mollie-api-ruby-4.6.1 lib/mollie/organization.rb
mollie-api-ruby-4.6.0 lib/mollie/organization.rb
mollie-api-ruby-4.5.0 lib/mollie/organization.rb
mollie-api-ruby-4.4.1 lib/mollie/organization.rb
mollie-api-ruby-4.4.0 lib/mollie/organization.rb