Sha256: 69ecfa2107ddb8009f22295778d025ac5b91dc6c6b4ec6844adc0b4604731189

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

module Ruby
  module Identitas
    module Endpoints
      module Me
        def me(options = {})
          options.merge!({access_token: @token})
          endpoint = build_endpoint("/v1/me")
          self.class.get(endpoint, query: options)
        end

        def verify_credential(options = {})
          options.merge!({access_token: @token})
          endpoint = build_endpoint("/v1/verify_credential")
          self.class.get(endpoint, query: options)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-identitas-api-0.8.0 lib/ruby/identitas/endpoints/me.rb
ruby-identitas-api-0.7.1 lib/ruby/identitas/endpoints/me.rb
ruby-identitas-api-0.7.0 lib/ruby/identitas/endpoints/me.rb
ruby-identitas-api-0.6.0 lib/ruby/identitas/endpoints/me.rb