module Delighted::Operations::Retrieve::Pluralton::ClassMethods
Public Instance Methods
path(id = nil)
click to toggle source
# File lib/delighted/operations/retrieve.rb, line 20 def path(id = nil) id ? "#{@path}/#{id}" : @path end
retrieve(id, opts = {}, client = Delighted.shared_client)
click to toggle source
# File lib/delighted/operations/retrieve.rb, line 14 def retrieve(id, opts = {}, client = Delighted.shared_client) opts = Utils.serialize_values(opts) json = client.get_json(path(id), opts) new(json) end