Module: GoGoodreads::Resource
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/go_goodreads/resource.rb', line 3 def self.included(base) base.__send__(:include, Attributes) end |
Instance Method Details
#initialize(attrs = {}) ⇒ Object
7 8 9 |
# File 'lib/go_goodreads/resource.rb', line 7 def initialize(attrs = {}) attrs.each {|k, v| instance_variable_set("@#{ k }", v) } end |