Module: Ruby::Identitas::Endpoints::Me

Included in:
Main
Defined in:
lib/ruby/identitas/endpoints/me.rb

Instance Method Summary collapse

Instance Method Details

#me(options = {}) ⇒ Object



5
6
7
8
9
# File 'lib/ruby/identitas/endpoints/me.rb', line 5

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

#verify_credential(options = {}) ⇒ Object



11
12
13
14
15
# File 'lib/ruby/identitas/endpoints/me.rb', line 11

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