Class: Isomorphic::Node::NamespaceAssociation

Inherits:
Association show all
Defined in:
lib/isomorphic/node.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#factory, #inflector, #options, #parent

Instance Method Summary collapse

Methods inherited from Association

#from_isomorphism, #to_isomorphism

Methods included from Internal::InstanceMethodsForMember

#attribute, #attribute_for, #collection, #from, #guard_attribute_for, #member, #namespace, #namespace_attribute_for, #to

Methods inherited from AbstractNode

#from_isomorphism, #to_isomorphism, #to_isomorphism_for

Methods included from Internal::DeepEquals

#all_attributes_eql?

Constructor Details

#initialize(parent, namespace_name, key, **options, &block) ⇒ NamespaceAssociation

Returns a new instance of NamespaceAssociation.



1047
1048
1049
1050
1051
1052
# File 'lib/isomorphic/node.rb', line 1047

def initialize(parent, namespace_name, key, **options, &block)
  super(parent, **options, &block)

  @namespace_name = namespace_name
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



1045
1046
1047
# File 'lib/isomorphic/node.rb', line 1045

def key
  @key
end

#namespace_nameObject (readonly)

Returns the value of attribute namespace_name.



1045
1046
1047
# File 'lib/isomorphic/node.rb', line 1045

def namespace_name
  @namespace_name
end