Class: Dibuk::Request::Base
- Inherits:
-
Object
- Object
- Dibuk::Request::Base
- Defined in:
- lib/dibuk/request/base.rb
Instance Method Summary collapse
Instance Method Details
#action ⇒ String
20 21 22 |
# File 'lib/dibuk/request/base.rb', line 20 def action raise 'Action should be implemented' end |
#body ⇒ Object
8 9 10 |
# File 'lib/dibuk/request/base.rb', line 8 def body '' end |
#headers ⇒ Object
12 13 14 15 16 17 |
# File 'lib/dibuk/request/base.rb', line 12 def headers { 'Content-Type' => 'application/json', #'Authorization' => "Bearer #{client.auth_token}" } end |
#method ⇒ Object
4 5 6 |
# File 'lib/dibuk/request/base.rb', line 4 def method 'POST' end |