Class: ActiveData::Model::Attributes::Reflections::Dictionary

Inherits:
Attribute
  • Object
show all
Defined in:
lib/active_data/model/attributes/reflections/dictionary.rb

Instance Attribute Summary

Attributes inherited from Base

#name, #options

Instance Method Summary collapse

Methods inherited from Attribute

build, #defaultizer, #enumerizer, generate_methods, #normalizers

Methods inherited from Base

attribute_class, build, #build_attribute, generate_methods, #initialize, #inspect_reflection, #readonly, #type, #typecaster

Constructor Details

This class inherits a constructor from ActiveData::Model::Attributes::Reflections::Base

Instance Method Details

#keysObject



6
7
8
# File 'lib/active_data/model/attributes/reflections/dictionary.rb', line 6

def keys
  @keys ||= Array.wrap(options[:keys]).map(&:to_s)
end