module Quandl::Sandbox::Attributes::ClassMethods

Public Instance Methods

attributes() click to toggle source
# File lib/quandl/sandbox/attributes.rb, line 16
def attributes
  @attributes
end
define_attributes(*names) click to toggle source
# 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