Exception: Archaeo::FetchError
Instance Attribute Summary collapse
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(message, status_code:, url:, page:) ⇒ FetchError
constructor
A new instance of FetchError.
Constructor Details
#initialize(message, status_code:, url:, page:) ⇒ FetchError
Returns a new instance of FetchError.
22 23 24 25 26 27 |
# File 'lib/archaeo.rb', line 22 def initialize(, status_code:, url:, page:) super() @status_code = status_code @url = url @page = page end |
Instance Attribute Details
#page ⇒ Object (readonly)
Returns the value of attribute page.
20 21 22 |
# File 'lib/archaeo.rb', line 20 def page @page end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
20 21 22 |
# File 'lib/archaeo.rb', line 20 def status_code @status_code end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
20 21 22 |
# File 'lib/archaeo.rb', line 20 def url @url end |