Class: CoreLibrary::XmlAttributes

Inherits:
Object
  • Object
show all
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

Constructor Details

#initializeXmlAttributes

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.

Returns:



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_nameObject

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_nameObject

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_valueObject

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.

Returns:



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.

Returns:



13
14
15
16
# File 'lib/apimatic-core/types/xml_attributes.rb', line 13

def value(value)
  @value = value
  self
end