Class: Bnb::New
- Inherits:
-
Object
- Object
- Bnb::New
- Defined in:
- lib/bnb/resources/new.rb
Constant Summary collapse
- NEW_LIMIT =
100
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ New
constructor
A new instance of New.
- #list ⇒ Object
Constructor Details
Instance Method Details
#list ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/bnb/resources/new.rb', line 12 def list url = Bnb::Base.send(:build_url, '/listings/new') = 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 |