Class: Isomorphic::Node::NamespaceAttribute
- Inherits:
-
Attribute
- Object
- AbstractNode
- Attribute
- Isomorphic::Node::NamespaceAttribute
- 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 Attribute
Attributes inherited from AbstractNode
#factory, #inflector, #options, #parent
Instance Method Summary collapse
-
#initialize(parent, namespace_name, key, method_name, xmlattr_class = nil, **options, &block) ⇒ NamespaceAttribute
constructor
A new instance of NamespaceAttribute.
Methods inherited from Attribute
#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, method_name, xmlattr_class = nil, **options, &block) ⇒ NamespaceAttribute
Returns a new instance of NamespaceAttribute.
1068 1069 1070 1071 1072 1073 |
# File 'lib/isomorphic/node.rb', line 1068 def initialize(parent, namespace_name, key, method_name, xmlattr_class = nil, **, &block) super(parent, method_name, xmlattr_class, **, &block) @namespace_name = namespace_name @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
1066 1067 1068 |
# File 'lib/isomorphic/node.rb', line 1066 def key @key end |
#namespace_name ⇒ Object (readonly)
Returns the value of attribute namespace_name.
1066 1067 1068 |
# File 'lib/isomorphic/node.rb', line 1066 def namespace_name @namespace_name end |