Module: OneApiSdk::Client::Quotes
- Included in:
- OneApiSdk::Client
- Defined in:
- lib/one_api_sdk/quotes.rb
Instance Method Summary collapse
-
#quote(id, query_params = "") ⇒ Hash
Request one specific movie quote.
-
#quotes(query_params = "") ⇒ Array<Hash>
List all movie quotes.
Instance Method Details
#quote(id, query_params = "") ⇒ Hash
Request one specific movie quote
23 24 25 26 |
# File 'lib/one_api_sdk/quotes.rb', line 23 def quote(id,query_params="") response = call_with_token("#{Constants::QUOTE_BASE_PATH}/#{id}#{query_params}") JSON.parse(response.body) end |
#quotes(query_params = "") ⇒ Array<Hash>
List all movie quotes
13 14 15 16 |
# File 'lib/one_api_sdk/quotes.rb', line 13 def quotes(query_params="") response = call_with_token("#{Constants::QUOTE_BASE_PATH}#{query_params}") JSON.parse(response.body) end |