Class: Isomorphic::Node::NamespaceAssociation
- Inherits:
-
Association
- Object
- AbstractNode
- Association
- Isomorphic::Node::NamespaceAssociation
- Defined in:
- lib/isomorphic/node.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#namespace_name ⇒ Object
readonly
Returns the value of attribute namespace_name.
Attributes inherited from AbstractNode
#factory, #inflector, #options, #parent
Instance Method Summary collapse
-
#initialize(parent, namespace_name, key, **options, &block) ⇒ NamespaceAssociation
constructor
A new instance of NamespaceAssociation.
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
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, **, &block) super(parent, **, &block) @namespace_name = namespace_name @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
1045 1046 1047 |
# File 'lib/isomorphic/node.rb', line 1045 def key @key end |
#namespace_name ⇒ Object (readonly)
Returns the value of attribute namespace_name.
1045 1046 1047 |
# File 'lib/isomorphic/node.rb', line 1045 def namespace_name @namespace_name end |