Class: Rubicante::WebsiteError
- Inherits:
-
Object
- Object
- Rubicante::WebsiteError
- Defined in:
- lib/rubicante/website_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, code) ⇒ WebsiteError
constructor
A new instance of WebsiteError.
Constructor Details
#initialize(url, code) ⇒ WebsiteError
Returns a new instance of WebsiteError.
5 6 7 8 |
# File 'lib/rubicante/website_error.rb', line 5 def initialize(url, code) @url = url @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/rubicante/website_error.rb', line 3 def code @code end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/rubicante/website_error.rb', line 3 def url @url end |