Sha256: b686d414ef66a16740db0fd69f6be8f7ae3944f26b2d717fd3fe98fc342231ef

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

require "omise/object"

module Omise
  class Account < OmiseObject
    self.endpoint = "/account"

    def self.retrieve(attributes = {})
      new resource(location, attributes).get(attributes)
    end

    def reload(attributes = {})
      assign_attributes resource(attributes).get(attributes)
    end

    def update(attributes = {})
      assign_attributes resource(attributes).patch(attributes)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
omise-0.11.0 lib/omise/account.rb
omise-0.10.1 lib/omise/account.rb
omise-0.10.0 lib/omise/account.rb