Class: Slack::Notifier::HTTPPost
- Inherits:
-
Object
- Object
- Slack::Notifier::HTTPPost
- Defined in:
- lib/slack-notifier/http_post.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(uri, params) ⇒ HTTPPost
constructor
A new instance of HTTPPost.
Constructor Details
#initialize(uri, params) ⇒ HTTPPost
Returns a new instance of HTTPPost.
14 15 16 17 |
# File 'lib/slack-notifier/http_post.rb', line 14 def initialize uri, params @uri = uri @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
12 13 14 |
# File 'lib/slack-notifier/http_post.rb', line 12 def params @params end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
12 13 14 |
# File 'lib/slack-notifier/http_post.rb', line 12 def uri @uri end |
Class Method Details
Instance Method Details
#call ⇒ Object
19 20 21 |
# File 'lib/slack-notifier/http_post.rb', line 19 def call http_obj.request request_obj end |