Sha256: a5044fc9090e4bdb6085e50c4f4409aa4000629ed3df671d355dea8946194f23

Contents?: true

Size: 299 Bytes

Versions: 11

Compression:

Stored size: 299 Bytes

Contents

module InsalesApi
  class Account < Base
    def self.current
      find(:one, :from => '/admin/account.xml')
    end

    def update
      connection.put('/admin/account.xml', encode, self.class.headers).tap do |response|
        load_attributes_from_response(response)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
insales_api-0.0.13 lib/insales_api/account.rb
insales_api-0.0.10 lib/insales_api/resources/account.rb
insales_api-0.0.9 lib/insales_api/resources/account.rb
insales_api-0.0.8 lib/insales_api/resources/account.rb
insales_api-0.0.7 lib/insales_api/resources/account.rb
insales_api-0.0.6 lib/insales_api/resources/account.rb
insales_api-0.0.5 lib/insales_api/resources/account.rb
insales_api-0.0.4 lib/insales_api/resources/account.rb
insales_api-0.0.3 lib/insales_api/resources/account.rb
insales_api-0.0.2 lib/insales_api/resources/account.rb
insales_api-0.0.1 lib/insales_api/resources/account.rb