Class: Tradier::EventSession
Instance Attribute Summary collapse
-
#sessionid ⇒ Object
readonly
Returns the value of attribute sessionid.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Methods inherited from Base
#[], #attr_equal, attr_reader, #attrs, #attrs_equal, #initialize, #update
Constructor Details
This class inherits a constructor from Tradier::Base
Instance Attribute Details
#sessionid ⇒ Object (readonly)
Returns the value of attribute sessionid.
6 7 8 |
# File 'lib/tradier/event_session.rb', line 6 def sessionid @sessionid end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/tradier/event_session.rb', line 6 def url @url end |
Class Method Details
.from_response(body = {}) ⇒ Object
8 9 10 |
# File 'lib/tradier/event_session.rb', line 8 def self.from_response(body={}) new(body[:stream] || body) end |