Exception: SharedCountApi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- SharedCountApi::Error
- Defined in:
- lib/shared_count_api.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(type, message) ⇒ Error
Returns a new instance of Error.
10 11 12 |
# File 'lib/shared_count_api.rb', line 10 def initialize(type, ) @type, @message = type, end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
8 9 10 |
# File 'lib/shared_count_api.rb', line 8 def error @error end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/shared_count_api.rb', line 8 def type @type end |