module ChartMogul::API::Actions::Retrieve::ClassMethods
Public Instance Methods
retrieve(uuid, options = {})
click to toggle source
# File lib/chartmogul/api/actions/retrieve.rb, line 12 def retrieve(uuid, options = {}) resp = handling_errors do connection.get("#{resource_path.apply(options)}/#{uuid}") 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