Class: WatchList::DSL::Context::Monitor::HTTP
- Defined in:
- lib/watch_list/dsl/context/monitor/http.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Type
Instance Method Summary collapse
Methods inherited from Type
[], inherited, #initialize, #result
Constructor Details
This class inherits a constructor from WatchList::DSL::Context::Monitor::Type
Instance Method Details
#httppassword(value) ⇒ Object
8 9 10 11 |
# File 'lib/watch_list/dsl/context/monitor/http.rb', line 8 def httppassword(value) raise %!Monitor `#{@monitor_name}`: "httppassword" is invalid: #{value.inspect}! if value.nil? @result[:HTTPPassword] = value.to_s end |
#httpusername(value) ⇒ Object
3 4 5 6 |
# File 'lib/watch_list/dsl/context/monitor/http.rb', line 3 def httpusername(value) raise %!Monitor `#{@monitor_name}`: "httpusername" is invalid: #{value.inspect}! if value.nil? @result[:HTTPUsername] = value.to_s end |