Module: Graboid::Entity::InstanceMethods
- Defined in:
- lib/graboid/entity.rb
Overview
ClassMethods
Instance Method Summary collapse
Instance Method Details
#attribute_map ⇒ Object
205 206 207 |
# File 'lib/graboid/entity.rb', line 205 def attribute_map self.class.attribute_map end |
#initialize(opts = {}) ⇒ Object
195 196 197 198 199 200 201 202 203 |
# File 'lib/graboid/entity.rb', line 195 def initialize opts={} opts.each do |k,v| self.class.class_eval do define_method k do v end end end end |