class NorthPoleWrapper::Resource
Public Class Methods
create(h)
click to toggle source
base_uri ‘localhost:3000’
# File lib/north_pole_wrapper.rb, line 19 def self.create h post("/#{klass}.json", { :body => h.to_json } ) end
destroy(h)
click to toggle source
# File lib/north_pole_wrapper.rb, line 31 def self.destroy h delete("/#{klass}.json", { :query => h } ) end
find(h)
click to toggle source
# File lib/north_pole_wrapper.rb, line 23 def self.find h get("/#{klass}.json", { :query => h } ) end
klass()
click to toggle source
# File lib/north_pole_wrapper.rb, line 35 def self.klass to_s.downcase.split(':').last end
update(h)
click to toggle source
# File lib/north_pole_wrapper.rb, line 27 def self.update h put("/#{klass}.json", { :body => h.to_json } ) end