Class: KashflowApi::ApiCall
- Inherits:
-
Object
- Object
- KashflowApi::ApiCall
- Defined in:
- lib/kashflow_api/api_call.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize(method, argument) ⇒ ApiCall
constructor
A new instance of ApiCall.
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
#method ⇒ Object (readonly)
Returns the value of attribute method.
3 4 5 |
# File 'lib/kashflow_api/api_call.rb', line 3 def method @method end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
3 4 5 |
# File 'lib/kashflow_api/api_call.rb', line 3 def result @result end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
3 4 5 |
# File 'lib/kashflow_api/api_call.rb', line 3 def xml @xml end |