Class: Foxtrot::Response::SuccessResponse
Instance Method Summary
collapse
Methods inherited from Response
#poll_and_block!, response_for
Constructor Details
#initialize(endpoint, resp, api_instance) ⇒ SuccessResponse
Returns a new instance of SuccessResponse.
87
88
89
90
91
|
# File 'lib/foxtrot/response.rb', line 87
def initialize(endpoint, resp, api_instance)
super
@txid = resp['txid']
@data = resp['response']['api_data']
end
|
Instance Method Details
#complete? ⇒ Boolean
93
94
95
|
# File 'lib/foxtrot/response.rb', line 93
def complete?
true
end
|
#get_result ⇒ Object
101
102
103
|
# File 'lib/foxtrot/response.rb', line 101
def get_result
@data
end
|
#poll! ⇒ Object
97
98
99
|
# File 'lib/foxtrot/response.rb', line 97
def poll!
self
end
|
#to_s ⇒ Object
105
106
107
|
# File 'lib/foxtrot/response.rb', line 105
def to_s
"SuccessResponse (#{@txid})"
end
|