class BuckyBox::API::Response
Public Class Methods
new(hash)
click to toggle source
Calls superclass method
# File lib/buckybox/api.rb, line 20 def initialize(hash) unless hash.is_a?(Hash) raise ArgumentError, "#{hash.inspect} must be a Hash" end super(hash, nil) do |object, key| raise NoMethodError, "undefined method `#{key}' for #{object}" end end