Class: ActiveGraph::LazyAttributeHash

Inherits:
ActiveModel::LazyAttributeHash
  • Object
show all
Defined in:
lib/active_graph/lazy_attribute_hash.rb

Instance Method Summary collapse

Constructor Details

#initialize(values, attr_list) ⇒ LazyAttributeHash

Returns a new instance of LazyAttributeHash.



5
6
7
8
9
10
11
12
13
# File 'lib/active_graph/lazy_attribute_hash.rb', line 5

def initialize(values, attr_list)
  @types = {}
  @values = {}
  @additional_types = {}
  @materialized = false
  @delegate_hash = values

  @default_attributes = process_default_attributes(attr_list)
end