Class: Rapa::Error
- Inherits:
-
Object
- Object
- Rapa::Error
- Defined in:
- lib/rapa/error.rb
Instance Attribute Summary collapse
- #source ⇒ Hash readonly
Instance Method Summary collapse
- #code ⇒ String
-
#initialize(source) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ String
Constructor Details
#initialize(source) ⇒ Error
Returns a new instance of Error.
7 8 9 |
# File 'lib/rapa/error.rb', line 7 def initialize(source) @source = source end |
Instance Attribute Details
#source ⇒ Hash (readonly)
4 5 6 |
# File 'lib/rapa/error.rb', line 4 def source @source end |
Instance Method Details
#code ⇒ String
12 13 14 |
# File 'lib/rapa/error.rb', line 12 def code source["Code"] end |
#message ⇒ String
17 18 19 |
# File 'lib/rapa/error.rb', line 17 def source["Message"] end |