Class: Isomorphic::Node::NamespaceAttribute

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

Instance Attribute Summary collapse

Attributes inherited from Attribute

#method_name, #xmlattr_class

Attributes inherited from AbstractNode

#factory, #inflector, #options, #parent

Instance Method Summary collapse

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

#all_attributes_eql?

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, **options, &block)
  super(parent, method_name, xmlattr_class, **options, &block)

  @namespace_name = namespace_name
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



1066
1067
1068
# File 'lib/isomorphic/node.rb', line 1066

def key
  @key
end

#namespace_nameObject (readonly)

Returns the value of attribute namespace_name.



1066
1067
1068
# File 'lib/isomorphic/node.rb', line 1066

def namespace_name
  @namespace_name
end