Class: CoreLibrary::XmlAttributes
- Inherits:
-
Object
- Object
- CoreLibrary::XmlAttributes
- Defined in:
- lib/apimatic-core/types/xml_attributes.rb
Overview
The class to hold the configuration for XML parameter in request and response.
Instance Method Summary collapse
-
#array_item_name(array_item_name) ⇒ XmlAttributes
Setter for array item name in XmlAttributes.
-
#get_array_item_name ⇒ Object
Getter for the set array item name in XmlAttributes.
-
#get_root_element_name ⇒ Object
Getter for root element of XmlAttributes.
-
#get_value ⇒ Object
Getter for value of XmlAttributes.
-
#initialize ⇒ XmlAttributes
constructor
Initializes a new instance of XmlAttributes.
-
#root_element_name(root_element_name) ⇒ XmlAttributes
Setter for root_element_name of XmlAttributes.
-
#value(value) ⇒ XmlAttributes
Value setter for XML parameter.
Constructor Details
#initialize ⇒ XmlAttributes
Initializes a new instance of XmlAttributes.
5 6 7 8 9 |
# File 'lib/apimatic-core/types/xml_attributes.rb', line 5 def initialize @value = nil @root_element_name = nil @array_item_name = nil end |
Instance Method Details
#array_item_name(array_item_name) ⇒ XmlAttributes
Setter for array item name in XmlAttributes.
27 28 29 30 |
# File 'lib/apimatic-core/types/xml_attributes.rb', line 27 def array_item_name(array_item_name) @array_item_name = array_item_name self end |
#get_array_item_name ⇒ Object
Getter for the set array item name in XmlAttributes.
43 44 45 |
# File 'lib/apimatic-core/types/xml_attributes.rb', line 43 def get_array_item_name @array_item_name end |
#get_root_element_name ⇒ Object
Getter for root element of XmlAttributes.
33 34 35 |
# File 'lib/apimatic-core/types/xml_attributes.rb', line 33 def get_root_element_name @root_element_name end |
#get_value ⇒ Object
Getter for value of XmlAttributes.
38 39 40 |
# File 'lib/apimatic-core/types/xml_attributes.rb', line 38 def get_value @value end |
#root_element_name(root_element_name) ⇒ XmlAttributes
Setter for root_element_name of XmlAttributes.
20 21 22 23 |
# File 'lib/apimatic-core/types/xml_attributes.rb', line 20 def root_element_name(root_element_name) @root_element_name = root_element_name self end |
#value(value) ⇒ XmlAttributes
Value setter for XML parameter.
13 14 15 16 |
# File 'lib/apimatic-core/types/xml_attributes.rb', line 13 def value(value) @value = value self end |