Sha256: c8ff486f8937547406a506d84bf9334fc3a924fa1c732f0f9f3a0554ea2c6147

Contents?: true

Size: 720 Bytes

Versions: 1

Compression:

Stored size: 720 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 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-identitas-api-0.5.0 lib/ruby/identitas/endpoints/me.rb