class AGCOD::GetAvailableFunds
Public Class Methods
new(httpable, partner_id)
click to toggle source
# File lib/aws_agcod/get_available_funds.rb, line 8 def initialize(httpable, partner_id) @response = Request.new(httpable, 'GetAvailableFunds', 'partnerId' => partner_id, ).response end
Public Instance Methods
available_funds()
click to toggle source
# File lib/aws_agcod/get_available_funds.rb, line 14 def available_funds @response.payload['availableFunds'].map { |payload| AGCOD::AvailableFunds.new(payload) } end
status()
click to toggle source
# File lib/aws_agcod/get_available_funds.rb, line 22 def status @response.payload['status'] end
success?()
click to toggle source
# File lib/aws_agcod/get_available_funds.rb, line 26 def success? @response.payload['status'] == 'SUCCESS' end
timestamp()
click to toggle source
# File lib/aws_agcod/get_available_funds.rb, line 18 def timestamp Time.parse(@response.payload['timestamp']) end