Sha256: 9265fe6322cdb5350012bff43be6aa42711b2a31105bd47eb3281a603508a767

Contents?: true

Size: 651 Bytes

Versions: 2

Compression:

Stored size: 651 Bytes

Contents

module AfterbanksPSD2
  class User < Resource
    has_fields limit:           { type: :integer },
               counter:         { type: :integer },
               remaining_calls: { type: :integer },
               date_renewal:    { type: :date },
               detail:          { type: :string }

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
afterbanks-psd2-api-ruby-0.1.1 lib/afterbanks_psd2/resources/user.rb
afterbanks-psd2-api-ruby-0.1.0 lib/afterbanks_psd2/resources/user.rb