Class: Bnb::All
- Inherits:
-
Object
- Object
- Bnb::All
- Defined in:
- lib/bnb/resources/all.rb
Constant Summary collapse
- ALL_LIMIT =
7
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ All
constructor
A new instance of All.
- #list ⇒ Object
Constructor Details
Instance Method Details
#list ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/bnb/resources/all.rb', line 12 def list url = Bnb::Base.send(:build_url, '/listings/latest') = OpenStruct.new(http_method: 'get', url: url, headers: { 'Content-Type' => 'application/json' }, data: {}, params: { start: @start, limit: @limit }, auth: nil, proxy: nil, options: {}) Request::Client.request() end |