Class: Webhookdb::Slack::NoOpHttpClient
- Inherits:
-
Object
- Object
- Webhookdb::Slack::NoOpHttpClient
- Defined in:
- lib/webhookdb/slack.rb
Instance Attribute Summary collapse
-
#posts ⇒ Object
readonly
Returns the value of attribute posts.
Instance Method Summary collapse
-
#initialize ⇒ NoOpHttpClient
constructor
A new instance of NoOpHttpClient.
- #post(uri, params = {}) ⇒ Object
Constructor Details
#initialize ⇒ NoOpHttpClient
Returns a new instance of NoOpHttpClient.
60 61 62 |
# File 'lib/webhookdb/slack.rb', line 60 def initialize @posts = [] end |
Instance Attribute Details
#posts ⇒ Object (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 |