Class: Webhookdb::Slack::NoOpHttpClient

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNoOpHttpClient

Returns a new instance of NoOpHttpClient.



60
61
62
# File 'lib/webhookdb/slack.rb', line 60

def initialize
  @posts = []
end

Instance Attribute Details

#postsObject (readonly)

Returns the value of attribute posts.



58
59
60
# File 'lib/webhookdb/slack.rb', line 58

def posts
  @posts
end

Instance Method Details

#post(uri, params = {}) ⇒ Object



64
65
66
# File 'lib/webhookdb/slack.rb', line 64

def post(uri, params={})
  self.posts << [uri, params]
end