Method: Codat::BaseModel.attributes
- Defined in:
- lib/codat/base_model.rb
.attributes(*attributes) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/codat/base_model.rb', line 25 def attributes(*attributes) @attributes ||= [] return @attributes unless attributes attr_accessor(*attributes) @attributes += attributes end |