Module: LexofficeClient::Model::Base::AttributeNamesConcern::ClassMethods
- Defined in:
- lib/lexoffice_client/model/base.rb
Instance Method Summary collapse
- #add_attribute_names(*args) ⇒ Object
- #attr_accessor ⇒ Object
- #attr_reader ⇒ Object
- #attribute_names ⇒ Object (also: #column_names)
Instance Method Details
#add_attribute_names(*args) ⇒ Object
38 39 40 41 42 |
# File 'lib/lexoffice_client/model/base.rb', line 38 def add_attribute_names(*args) args.each do |attr_name| attribute_names << attr_name end end |
#attr_accessor ⇒ Object
28 29 30 31 |
# File 'lib/lexoffice_client/model/base.rb', line 28 def attr_accessor(*) super add_attribute_names(*) end |
#attr_reader ⇒ Object
33 34 35 36 |
# File 'lib/lexoffice_client/model/base.rb', line 33 def attr_reader(*) super add_attribute_names(*) end |
#attribute_names ⇒ Object Also known as: column_names
44 45 46 |
# File 'lib/lexoffice_client/model/base.rb', line 44 def attribute_names @attr_names ||= [] end |