Sha256: ee3fd83ee00947fad270e0420cdfea6155309f5080be5b4179bc5f4dff6a6d6f

Contents?: true

Size: 527 Bytes

Versions: 10

Compression:

Stored size: 527 Bytes

Contents

module Afterbanks
  class User < Resource
    has_fields limit: :integer,
               counter: :integer,
               remaining_calls: :integer,
               date_renewal: :date,
               detail: :string

    def self.get
      response, debug_id = Afterbanks.api_call(
        method: :post,
        path: '/me/',
        params: {
          servicekey: Afterbanks.configuration.servicekey
        }
      )

      Response.new(
        result: new(response),
        debug_id: debug_id
      )
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
afterbanks-api-ruby-0.3.4 lib/afterbanks/resources/user.rb
afterbanks-api-ruby-0.3.3 lib/afterbanks/resources/user.rb
afterbanks-api-ruby-0.3.2 lib/afterbanks/resources/user.rb
afterbanks-api-ruby-0.3.1 lib/afterbanks/resources/user.rb
afterbanks-api-ruby-0.3.0 lib/afterbanks/resources/user.rb
afterbanks-api-ruby-0.2.2 lib/afterbanks/resources/user.rb
afterbanks-api-ruby-0.2.1 lib/afterbanks/resources/user.rb
afterbanks-api-ruby-0.2.0 lib/afterbanks/resources/user.rb
afterbanks-api-ruby-0.1.1 lib/afterbanks/resources/user.rb
afterbanks-api-ruby-0.1.0 lib/afterbanks/resources/user.rb