Method: Rumx::HashAttribute#initialize

Defined in:
lib/rumx/hash_attribute.rb

#initialize(name, type, description, allow_read, allow_write, options) ⇒ HashAttribute

Returns a new instance of HashAttribute.



4
5
6
7
8
# File 'lib/rumx/hash_attribute.rb', line 4

def initialize(name, type, description, allow_read, allow_write, options)
  super
  raise 'Hash attribute called without hash_type option' unless options[:hash_type]
  @hash_type = Type.find(options[:hash_type])
end