Class: Fosdick::Receiver

Inherits:
Object
  • Object
show all
Defined in:
lib/fosdick/receiver.rb

Instance Method Summary collapse

Constructor Details

#initialize(end_point, request_options = {}) ⇒ Receiver

Returns a new instance of Receiver.



7
8
9
10
# File 'lib/fosdick/receiver.rb', line 7

def initialize(end_point, request_options={})
  @end_point       = end_point
  @request_options = request_options
end

Instance Method Details

#call_api(fosdick_options) ⇒ Object



12
13
14
# File 'lib/fosdick/receiver.rb', line 12

def call_api(fosdick_options)
  fetch_data(@end_point, fosdick_options)
end