module ChartMogul::API::Actions::All::ClassMethods

Public Instance Methods

all(options = {}) click to toggle source
# File lib/chartmogul/api/actions/all.rb, line 12
def all(options = {})
  resp = handling_errors do
    connection.get(resource_path.apply_with_get_params(options)) do |req|
      req.headers['Content-Type'] = 'application/json'
    end
  end

  json = ChartMogul::Utils::JSONParser.parse(resp.body, immutable_keys: immutable_keys)
  new_from_json(json)
end