Class: SoapyYandex::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/soapy_yandex/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_path, name, attributes) ⇒ Request

Returns a new instance of Request.



6
7
8
9
10
# File 'lib/soapy_yandex/request.rb', line 6

def initialize(api_path, name, attributes)
  @api_path = api_path
  @name = name
  @attributes = attributes
end

Instance Attribute Details

#api_pathObject (readonly)

Returns the value of attribute api_path.



4
5
6
# File 'lib/soapy_yandex/request.rb', line 4

def api_path
  @api_path
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/soapy_yandex/request.rb', line 12

def to_s
  Ox.dump(xml, with_xml: true)
end