Exception: GlobodnsClient::NotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/globodns_client/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ NotFound

Returns a new instance of NotFound.



21
22
23
# File 'lib/globodns_client/exceptions.rb', line 21

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



19
20
21
# File 'lib/globodns_client/exceptions.rb', line 19

def message
  @message
end

Instance Method Details

#inspectObject

:nodoc:



29
30
31
# File 'lib/globodns_client/exceptions.rb', line 29

def inspect #:nodoc:
  "#<#{self.class}: message: #{@message.inspect}>"
end

#to_sObject

:nodoc:



25
26
27
# File 'lib/globodns_client/exceptions.rb', line 25

def to_s #:nodoc:
  "#{@message}"
end