class Bitstamp::Exception::InvalidContent

Attributes

body[R]

Public Class Methods

new(raw_body) click to toggle source
# File lib/bitstamp/exception.rb, line 16
def initialize(raw_body)
  @raw_body = raw_body
end

Public Instance Methods

inspect() click to toggle source
# File lib/bitstamp/exception.rb, line 24
def inspect
  "#{self.class.name}: #{message}"
end
message() click to toggle source
# File lib/bitstamp/exception.rb, line 20
def message
  "Failed to parse body as 'json': '#{@raw_body}'"
end
Also aliased as: to_s
to_s()
Alias for: message