Class: Uncomtrade::Response
- Inherits:
-
Object
- Object
- Uncomtrade::Response
- Defined in:
- lib/uncomtrade/response.rb
Instance Method Summary collapse
- #cherry_pick(options = {}) ⇒ Object
- #dataset ⇒ Object
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #result ⇒ Object
- #to_csv(file:, selectors: {}) ⇒ Object
Constructor Details
Instance Method Details
#cherry_pick(options = {}) ⇒ Object
22 23 24 |
# File 'lib/uncomtrade/response.rb', line 22 def cherry_pick(={}) iterator.cherry_pick(selectors) end |
#dataset ⇒ Object
18 19 20 |
# File 'lib/uncomtrade/response.rb', line 18 def dataset response["dataset"] end |
#result ⇒ Object
14 15 16 |
# File 'lib/uncomtrade/response.rb', line 14 def result response end |
#to_csv(file:, selectors: {}) ⇒ Object
26 27 28 |
# File 'lib/uncomtrade/response.rb', line 26 def to_csv(file:, selectors: {}) iterator.to_csv(file, selectors) end |