Sha256: 0ab42d78e3168b5df4d10e1a0ca45c12075eb1f18117821d38cd8734c9f52be4
Contents?: true
Size: 656 Bytes
Versions: 2
Compression:
Stored size: 656 Bytes
Contents
# frozen_string_literal: true 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, skip_case_conversion: skip_case_conversion) new_from_json(json) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chartmogul-ruby-1.7.1 | lib/chartmogul/api/actions/all.rb |
chartmogul-ruby-1.6.9 | lib/chartmogul/api/actions/all.rb |