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

#my_invitations(options = {}) ⇒ Object



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

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

#my_invitations_count(options = {}) ⇒ Object



17
18
19
20
21
# File 'lib/ruby/identitas/endpoints/me.rb', line 17

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