Module: Restulicious::Attributes
- Extended by:
- ActiveSupport::Concern
- Included in:
- Collection
- Defined in:
- lib/restulicious/attributes.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#initialize(attributes = {}) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/restulicious/attributes.rb', line 18 def initialize(attributes = {}) attributes.each do |key, value| send("#{key}=", check_utf8(value)) if respond_to?("#{key}=") end super() end |