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
sphere() click to toggle source
# File lib/sentimeta/client/data.rb, line 5
def sphere() Sentimeta.sphere end