Class: Pokey::Hook

Inherits:
Object
  • Object
show all
Defined in:
lib/pokey/hook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data.



2
3
4
# File 'lib/pokey/hook.rb', line 2

def data
  @data
end

#destinationObject

Returns the value of attribute destination.



2
3
4
# File 'lib/pokey/hook.rb', line 2

def destination
  @destination
end

#http_methodObject

Returns the value of attribute http_method.



2
3
4
# File 'lib/pokey/hook.rb', line 2

def http_method
  @http_method
end

#intervalObject

Returns the value of attribute interval.



2
3
4
# File 'lib/pokey/hook.rb', line 2

def interval
  @interval
end

Instance Method Details

#make_http_request!Object



4
5
6
# File 'lib/pokey/hook.rb', line 4

def make_http_request!
  Pokey::Request.make!(destination, http_method, data)
end