Exception: Bitstamp::Exception::InvalidContent
- Inherits:
-
StandardError
- Object
- StandardError
- Bitstamp::Exception::InvalidContent
- Defined in:
- lib/bitstamp/exception.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(raw_body) ⇒ InvalidContent
constructor
A new instance of InvalidContent.
- #inspect ⇒ Object
- #message ⇒ Object (also: #to_s)
Constructor Details
#initialize(raw_body) ⇒ InvalidContent
Returns a new instance of InvalidContent.
16 17 18 |
# File 'lib/bitstamp/exception.rb', line 16 def initialize(raw_body) @raw_body = raw_body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
14 15 16 |
# File 'lib/bitstamp/exception.rb', line 14 def body @body end |
Instance Method Details
#inspect ⇒ Object
24 25 26 |
# File 'lib/bitstamp/exception.rb', line 24 def inspect "#{self.class.name}: #{}" end |
#message ⇒ Object Also known as: to_s
20 21 22 |
# File 'lib/bitstamp/exception.rb', line 20 def "Failed to parse body as 'json': '#{@raw_body}'" end |