Exception: Gorynich::HostNotFound
- Defined in:
- lib/gorynich.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
-
#initialize(host, message = nil) ⇒ HostNotFound
constructor
A new instance of HostNotFound.
Constructor Details
#initialize(host, message = nil) ⇒ HostNotFound
Returns a new instance of HostNotFound.
37 38 39 40 41 |
# File 'lib/gorynich.rb', line 37 def initialize(host, = nil) @host = host super( || I18n.t('gorynich.host_not_found', host: @host, default: "Host #{@host} not found")) end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
35 36 37 |
# File 'lib/gorynich.rb', line 35 def host @host end |