Class: FakeGrid::FakeSendgrid

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

Instance Method Summary collapse

Constructor Details

#initialize(dest, options = {}) ⇒ FakeSendgrid

Returns a new instance of FakeSendgrid.



22
23
24
# File 'lib/fakegrid.rb', line 22

def initialize(dest, options={})
  @dest = dest
end

Instance Method Details

#process!Object



26
27
28
29
# File 'lib/fakegrid.rb', line 26

def process!
  @request = RestClient.post @dest, sendgrid_data(@event), :content_type => :json
  @request.code
end