Module: Dox::Api::ResourceModel::ClassMethods

Defined in:
lib/dox/api/resource_model.rb

Instance Method Summary collapse

Instance Method Details

#attributes(*names) ⇒ Object


28
29
30
31
32
# File 'lib/dox/api/resource_model.rb', line 28

def attributes(*names)
  attr_accessor(*names)
  @attributes ||= []
  @attributes += names
end