Class: KashflowApi::ApiCall

Inherits:
Object
  • Object
show all
Defined in:
lib/kashflow_api/api_call.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, argument) ⇒ ApiCall

Returns a new instance of ApiCall.



5
6
7
8
9
10
# File 'lib/kashflow_api/api_call.rb', line 5

def initialize(method, argument)
    set_method(method)
    build_xml(argument)
    raise xml if @raise
    @result = make_call
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



3
4
5
# File 'lib/kashflow_api/api_call.rb', line 3

def method
  @method
end

#resultObject (readonly)

Returns the value of attribute result.



3
4
5
# File 'lib/kashflow_api/api_call.rb', line 3

def result
  @result
end

#xmlObject (readonly)

Returns the value of attribute xml.



3
4
5
# File 'lib/kashflow_api/api_call.rb', line 3

def xml
  @xml
end