lib/ruby/identitas/endpoints/me.rb in ruby-identitas-api-0.4.0 vs lib/ruby/identitas/endpoints/me.rb in ruby-identitas-api-0.5.0

- old
+ new

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