Module: Shamu::Attributes::Assignment
- Extended by:
- ActiveSupport::Concern
- Included in:
- Entities::ListScope, JsonApi::Rails::Pagination, Services::Request
- Defined in:
- lib/shamu/attributes/assignment.rb
Overview
Provide a means for defining writable attributes.
Class Method Summary collapse
-
.attribute(name, *args, **options, &block)
Define a new attribute for the class.
Class Method Details
.attribute(name, *args, **options, &block)
This method returns an undefined value.
Define a new attribute for the class.
38 39 40 41 42 |
# File 'lib/shamu/attributes/assignment.rb', line 38 def attribute( name, *args, **, &block ) super define_attribute_assignment( name, ** ) define_attribute_writer( name, ** ) end |