module Sentimeta::Client::Data
Public Instance Methods
attributes(options={})
click to toggle source
# File lib/sentimeta/client/data.rb, line 14 def attributes options={} get(:attributes, options)['values'] end
medal(id, options)
click to toggle source
# File lib/sentimeta/client/data.rb, line 18 def medal id, options response = get(:objects, options.merge(id: "#{ id }/medal")) if response.ok? && response.body['medal'].present? && response.body['object'].present? response.body = response.body.slice 'medal', 'object' response end end
search(options={})
click to toggle source
Usage:
search text: 'pitt' [, where: 'actors' ]
# File lib/sentimeta/client/data.rb, line 29 def search options={} result = get :search, options if options.has_key? :where result[options[:where]] else result end end
sphere()
click to toggle source
# File lib/sentimeta/client/data.rb, line 5 def sphere() Sentimeta.sphere end