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

Returns a new instance of XmlAttributes.



4
5
6
7
8
# File 'lib/apimatic-core/types/xml_attributes.rb', line 4

def initialize
  @value = nil
  @root_element_name = nil
  @array_item_name = nil
end

Instance Method Details

#array_item_name(array_item_name) ⇒ Object



20
21
22
23
# File 'lib/apimatic-core/types/xml_attributes.rb', line 20

def array_item_name(array_item_name)
  @array_item_name = array_item_name
  self
end

#get_array_item_nameObject



33
34
35
# File 'lib/apimatic-core/types/xml_attributes.rb', line 33

def get_array_item_name
  @array_item_name
end

#get_root_element_nameObject



25
26
27
# File 'lib/apimatic-core/types/xml_attributes.rb', line 25

def get_root_element_name
  @root_element_name
end

#get_valueObject



29
30
31
# File 'lib/apimatic-core/types/xml_attributes.rb', line 29

def get_value
  @value
end

#root_element_name(root_element_name) ⇒ Object



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

def root_element_name(root_element_name)
  @root_element_name = root_element_name
  self
end

#value(value) ⇒ Object



10
11
12
13
# File 'lib/apimatic-core/types/xml_attributes.rb', line 10

def value(value)
  @value = value
  self
end