Exception: TradingviewScreener::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/tradingview_screener/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status: nil, body: nil) ⇒ RequestError

Returns a new instance of RequestError.



13
14
15
16
17
# File 'lib/tradingview_screener/client.rb', line 13

def initialize(message, status: nil, body: nil)
  super(message)
  @status = status
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



11
12
13
# File 'lib/tradingview_screener/client.rb', line 11

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



11
12
13
# File 'lib/tradingview_screener/client.rb', line 11

def status
  @status
end