Sha256: a059cc3debbf07e996abc316a47805dbae8ab5471392e0af3afdb39f5440c708

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mollie-api-ruby-4.0.0.pre.alpha.2 lib/mollie/organization.rb
mollie-api-ruby-4.0.0 lib/mollie/organization.rb
mollie-api-ruby-4.0.0.pre.alpha.1 lib/mollie/organization.rb