class PopIt::Chain
Attributes
chain[R]
klass[R]
Public Class Methods
new(klass, chain)
click to toggle source
# File lib/popit.rb, line 162 def initialize(klass, chain) @klass = klass @chain = chain end
Public Instance Methods
delete(opts = {})
click to toggle source
# File lib/popit.rb, line 179 def delete(opts = {}) @klass.delete(chain.join('/'), opts) end
get(opts = {})
click to toggle source
# File lib/popit.rb, line 167 def get(opts = {}) @klass.get(chain.join('/'), opts) end
method_missing(*args)
click to toggle source
# File lib/popit.rb, line 183 def method_missing(*args) @chain += args self end
post(opts = {})
click to toggle source
# File lib/popit.rb, line 171 def post(opts = {}) @klass.post(chain.join('/'), opts) end
put(opts = {})
click to toggle source
# File lib/popit.rb, line 175 def put(opts = {}) @klass.put(chain.join('/'), opts) end