Module: LexofficeClient::Model::Base::AttributeNamesConcern::ClassMethods

Defined in:
lib/lexoffice_client/model/base.rb

Instance Method Summary collapse

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_accessorObject



28
29
30
31
# File 'lib/lexoffice_client/model/base.rb', line 28

def attr_accessor(*)
  super
  add_attribute_names(*)
end

#attr_readerObject



33
34
35
36
# File 'lib/lexoffice_client/model/base.rb', line 33

def attr_reader(*)
  super
  add_attribute_names(*)
end

#attribute_namesObject Also known as: column_names



44
45
46
# File 'lib/lexoffice_client/model/base.rb', line 44

def attribute_names
  @attr_names ||= []
end