Module: BeeswaxAPI::Request
- Included in:
- Endpoint
- Defined in:
- lib/beeswaxapi/request.rb
Instance Method Summary collapse
- #create(**opts, &block) ⇒ Object
- #delete(**opts, &block) ⇒ Object
- #retrieve(**opts, &block) ⇒ Object
- #update(**opts, &block) ⇒ Object
Instance Method Details
#create(**opts, &block) ⇒ Object
11 12 13 14 |
# File 'lib/beeswaxapi/request.rb', line 11 def create(**opts, &block) opts[:method] = :post request_for(opts, &block) end |
#delete(**opts, &block) ⇒ Object
21 22 23 24 |
# File 'lib/beeswaxapi/request.rb', line 21 def delete(**opts, &block) opts[:method] = :delete request_for(opts, &block) end |
#retrieve(**opts, &block) ⇒ Object
6 7 8 9 |
# File 'lib/beeswaxapi/request.rb', line 6 def retrieve(**opts, &block) opts[:method] = :get request_for(opts, &block) end |
#update(**opts, &block) ⇒ Object
16 17 18 19 |
# File 'lib/beeswaxapi/request.rb', line 16 def update(**opts, &block) opts[:method] = :put request_for(opts, &block) end |