Module: Quandl::Sandbox::Attributes::ClassMethods
- Defined in:
- lib/quandl/sandbox/attributes.rb
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
16 17 18 |
# File 'lib/quandl/sandbox/attributes.rb', line 16 def attributes @attributes end |
#define_attributes(*names) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/quandl/sandbox/attributes.rb', line 20 def define_attributes(*names) names.each do |name| name = name.to_sym next if @attributes.include?(name) @attributes << name attr_accessor(name) end end |