class Quandl::Error::Standard
Attributes
details[RW]
Public Class Methods
new(opts=nil)
click to toggle source
# File lib/quandl/error/standard.rb, line 21 def initialize(opts=nil) @details = OpenStruct.new( opts ) if opts && opts.is_a?(Hash) end
Public Instance Methods
context()
click to toggle source
# File lib/quandl/error/standard.rb, line 10 def context detail :context end
detail(key)
click to toggle source
# File lib/quandl/error/standard.rb, line 17 def detail(key) details.send(key) if details.respond_to?(key) end
line()
click to toggle source
# File lib/quandl/error/standard.rb, line 7 def line detail :line end
problem()
click to toggle source
# File lib/quandl/error/standard.rb, line 13 def problem detail :problem end