Class: Dibuk::Request::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/dibuk/request/base.rb

Direct Known Subclasses

License, Links, Send

Instance Method Summary collapse

Instance Method Details

#actionString

Returns:

  • (String)


20
21
22
# File 'lib/dibuk/request/base.rb', line 20

def action
  raise 'Action should be implemented'
end

#bodyObject



8
9
10
# File 'lib/dibuk/request/base.rb', line 8

def body
  ''
end

#headersObject



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

#methodObject



4
5
6
# File 'lib/dibuk/request/base.rb', line 4

def method
  'POST'
end