module Tend::Util::Ht::InstanceMethods

Public Instance Methods

delete(options = {}) click to toggle source
# File lib/tend/util/ht.rb, line 38
def delete options = {}
  o = extract_options options.merge(id: id, no_pagination: true)
  initialize self.class.send( :handle_response, HTTParty.delete( uri(o), :basic_auth => o.auth ) )[:data]
  self
end
get(options = {}) click to toggle source
# File lib/tend/util/ht.rb, line 50
def get options = {}
  self.class.get options
end
update(attributes, options = {}) click to toggle source
# File lib/tend/util/ht.rb, line 44
def update attributes, options = {}
  o = extract_options options.merge(id: id, no_pagination: true)
  initialize self.class.send( :handle_response, HTTParty.put( uri(o), body: attributes, :basic_auth => o.auth ) )[:data]
  self
end