class Shirtsio::Endpoint
Public Class Methods
new(json)
click to toggle source
# File lib/shirtsio/endpoint.rb, line 2 def initialize(json) @mash = Hashie::Mash.new(json) end
Public Instance Methods
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/shirtsio/endpoint.rb, line 6 def method_missing(method, *args, &block) return super unless @mash.respond_to?(method) @mash.send(method, *args, &block) end
respond_to?(method)
click to toggle source
# File lib/shirtsio/endpoint.rb, line 11 def respond_to?(method) @mash.respond_to?(method) end