Class: Nabortu::Methods::GetReserveDetails

Inherits:
Base
  • Object
show all
Defined in:
lib/nabortu/methods/get_reserve_details.rb

Instance Attribute Summary

Attributes inherited from Base

#params, #response

Instance Method Summary collapse

Methods inherited from Base

do_request, #do_request, #initialize

Constructor Details

This class inherits a constructor from Nabortu::Methods::Base

Instance Method Details

#do_prepareObject



10
11
12
# File 'lib/nabortu/methods/get_reserve_details.rb', line 10

def do_prepare
  @response[:get_reserve_details_result]
end

#request(params = {}) ⇒ Object



4
5
6
7
8
# File 'lib/nabortu/methods/get_reserve_details.rb', line 4

def request(params = {})
  reserve_id = params[:reserve_id] || raise(Nabortu::Errors::NoParam.new :reserve_id)

  {'tns:id_Reserve' => reserve_id.to_s}
end