Sha256: a7041a394c7937b3dc46623dae7414ed423c1c258ff28d422a11c154113103db
Contents?: true
Size: 603 Bytes
Versions: 3
Compression:
Stored size: 603 Bytes
Contents
module ChartMogul module API module Actions module All def self.included(base) base.extend ClassMethods end module ClassMethods 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) new_from_json(json) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chartmogul-ruby-1.1.5 | lib/chartmogul/api/actions/all.rb |
chartmogul-ruby-1.1.4 | lib/chartmogul/api/actions/all.rb |
chartmogul-ruby-1.1.2 | lib/chartmogul/api/actions/all.rb |