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.



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

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

  @default_attributes = process_default_attributes(attr_list)
end