Class: Gillbus::BaseRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/gillbus/base_request.rb

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ BaseRequest

Returns a new instance of BaseRequest.



5
6
7
8
9
# File 'lib/gillbus/base_request.rb', line 5

def initialize(attrs = {})
  attrs.each do |k, v|
    send "#{k}=", v
  end
end

Instance Method Details

#methodObject



19
20
21
# File 'lib/gillbus/base_request.rb', line 19

def method
  :post
end

#paramsObject



15
16
17
# File 'lib/gillbus/base_request.rb', line 15

def params
  {}
end

#pathObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/gillbus/base_request.rb', line 11

def path
  raise NotImplementedError, 'you need to define "path" method'
end