Module: Ruby::Identitas::Endpoints::Me
- Included in:
- Main
- Defined in:
- lib/ruby/identitas/endpoints/me.rb
Instance Method Summary collapse
- #me(options = {}) ⇒ Object
- #my_invitations(options = {}) ⇒ Object
- #my_invitations_count(options = {}) ⇒ Object
Instance Method Details
#me(options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/ruby/identitas/endpoints/me.rb', line 5 def me( = {}) .merge!({access_token: @token}) endpoint = build_endpoint("/v1/me") self.class.get(endpoint, query: ) end |
#my_invitations(options = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/ruby/identitas/endpoints/me.rb', line 11 def my_invitations( = {}) .merge!({access_token: @token}) endpoint = build_endpoint("/v1/me/invitations") self.class.get(endpoint, query: ) end |
#my_invitations_count(options = {}) ⇒ Object
17 18 19 20 21 |
# File 'lib/ruby/identitas/endpoints/me.rb', line 17 def my_invitations_count( = {}) .merge!({access_token: @token}) endpoint = build_endpoint("/v1/me/invitations/count") self.class.get(endpoint, query: ) end |