Module: TypeformData::ValueClass::ClassMethods

Defined in:
lib/typeform_data/value_class.rb

Instance Method Summary collapse

Instance Method Details

#readable_attributes(*keys) ⇒ Object

Parameters:

  • (Array<Symbol>)


75
76
77
78
79
80
81
# File 'lib/typeform_data/value_class.rb', line 75

def readable_attributes(*keys)
  @keys = Set.new(keys)

  keys.each do |key|
    attr_reader(key)
  end
end