class DaashubAPI::Base
Public Class Methods
new(args = {})
click to toggle source
# File lib/daashub_api/base.rb, line 3 def initialize(args = {}) @attributes = {} args.each { |k, v| @attributes[k.to_sym] = v } end
Protected Instance Methods
method_missing(name, *argv, &block)
click to toggle source
Calls superclass method
# File lib/daashub_api/base.rb, line 10 def method_missing(name, *argv, &block) super unless @attributes.key?(name) @attributes[name] end
respond_to_missing?(name, include_private = false)
click to toggle source
Calls superclass method
# File lib/daashub_api/base.rb, line 15 def respond_to_missing?(name, include_private = false) @attributes.key?(name) || super end