class ActiveGraph::AttributeSet
Public Class Methods
new(attr_hash, attr_list)
click to toggle source
Calls superclass method
# File lib/active_graph/attribute_set.rb 7 def initialize(attr_hash, attr_list) 8 hashmap = ActiveGraph::LazyAttributeHash.new(attr_hash, attr_list) 9 super(hashmap) 10 end
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/active_graph/attribute_set.rb 28 def ==(other) 29 other.is_a?(ActiveGraph::AttributeSet) ? super : to_hash == other 30 end
keys()
click to toggle source
# File lib/active_graph/attribute_set.rb 24 def keys 25 attributes.send(:materialize).keys 26 end
method_missing(name, *args, **kwargs, &block)
click to toggle source
Calls superclass method
# File lib/active_graph/attribute_set.rb 12 def method_missing(name, *args, **kwargs, &block) 13 if defined?(name) 14 attributes.send(:materialize).send(name, *args, **kwargs, &block) 15 else 16 super 17 end 18 end
respond_to_missing?(method, *)
click to toggle source
Calls superclass method
# File lib/active_graph/attribute_set.rb 20 def respond_to_missing?(method, *) 21 attributes.send(:materialize).respond_to?(method) || super 22 end