Class: Tripletexer::Endpoints::Token::Consumer

Inherits:
AbstractEndpoint show all
Defined in:
lib/tripletexer/endpoints/token/consumer.rb

Instance Method Summary collapse

Methods inherited from AbstractEndpoint

#initialize

Constructor Details

This class inherits a constructor from Tripletexer::Endpoints::AbstractEndpoint

Instance Method Details

#by_token(token, params = {}) ⇒ Object



7
8
9
10
# File 'lib/tripletexer/endpoints/token/consumer.rb', line 7

def by_token(token, params = {})
  final_params = params.merge('token' => token)
  find_entity('/v2/token/consumer/byToken', final_params)
end