class Granatum::Api::Base

Public Class Methods

access_token() click to toggle source
# File lib/granatum/api/base.rb, line 10
def self.access_token
  self._access_token
end
access_token=(token) click to toggle source
# File lib/granatum/api/base.rb, line 14
def self.access_token=(token)
  self._access_token = token
end
collection_path(prefix_options={}, query_option={}) click to toggle source
Calls superclass method
# File lib/granatum/api/base.rb, line 30
def self.collection_path(prefix_options={}, query_option={})
  super(prefix_options, query_option.merge({access_token: access_token}))
end
element_path(id, prefix_options={}, query_option={}) click to toggle source
Calls superclass method
# File lib/granatum/api/base.rb, line 26
def self.element_path(id, prefix_options={}, query_option={})
  super(id, prefix_options, query_option.merge({access_token: access_token}))
end
format() click to toggle source
# File lib/granatum/api/base.rb, line 18
def self.format
  ActiveResource::Formats::GranatumFormat
end
include_format_in_path() click to toggle source
# File lib/granatum/api/base.rb, line 22
def self.include_format_in_path
  false
end

Public Instance Methods

to_granatum(options) click to toggle source
# File lib/granatum/api/base.rb, line 34
def to_granatum(options)
  self.attributes.to_query
end