Method: Backup::Notifier::HttpPost#initialize
- Defined in:
- lib/backup/notifier/http_post.rb
#initialize(model, &block) ⇒ HttpPost
Returns a new instance of HttpPost.
69 70 71 72 73 74 75 76 |
# File 'lib/backup/notifier/http_post.rb', line 69 def initialize(model, &block) super instance_eval(&block) if block_given? @headers ||= {} @params ||= {} @success_codes ||= 200 end |