Module: Dsl::Attributes
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActiveFormObjects::Base
- Defined in:
- lib/dsl/attributes.rb
Constant Summary collapse
- @@attributes =
{}
- @@overrided_params =
{}
- @@default_params =
{}
- @@preparers =
{}
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
17 18 19 |
# File 'lib/dsl/attributes.rb', line 17 def attributes instance_values.with_indifferent_access.symbolize_keys end |
#attrs_only(params) ⇒ Object
13 14 15 |
# File 'lib/dsl/attributes.rb', line 13 def attrs_only(params) attributes.slice(*params) end |