Module: Kiita::Model
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#initialize(options = {}) ⇒ Object
4 5 6 |
# File 'lib/kiita/model.rb', line 4 def initialize( = {}) set_raw_attributes(.slice(*attributes)) if .slice(*attributes).present? end |
#raw_attributes ⇒ Object
8 9 10 |
# File 'lib/kiita/model.rb', line 8 def raw_attributes @raw_attributes ||= set_raw_attributes(raw_data) end |