Class: SchwabRb::DataObjects::UserPreferences::StreamerInfo
- Inherits:
-
Object
- Object
- SchwabRb::DataObjects::UserPreferences::StreamerInfo
- Defined in:
- lib/schwab_rb/data_objects/user_preferences.rb
Instance Attribute Summary collapse
-
#schwab_client_channel ⇒ Object
readonly
Returns the value of attribute schwab_client_channel.
-
#schwab_client_correl_id ⇒ Object
readonly
Returns the value of attribute schwab_client_correl_id.
-
#schwab_client_customer_id ⇒ Object
readonly
Returns the value of attribute schwab_client_customer_id.
-
#schwab_client_function_id ⇒ Object
readonly
Returns the value of attribute schwab_client_function_id.
-
#streamer_socket_url ⇒ Object
readonly
Returns the value of attribute streamer_socket_url.
Instance Method Summary collapse
-
#initialize(data) ⇒ StreamerInfo
constructor
A new instance of StreamerInfo.
- #to_h ⇒ Object
Constructor Details
#initialize(data) ⇒ StreamerInfo
89 90 91 92 93 94 95 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 89 def initialize(data) @streamer_socket_url = data[:streamerSocketUrl] @schwab_client_customer_id = data[:schwabClientCustomerId] @schwab_client_correl_id = data[:schwabClientCorrelId] @schwab_client_channel = data[:schwabClientChannel] @schwab_client_function_id = data[:schwabClientFunctionId] end |
Instance Attribute Details
#schwab_client_channel ⇒ Object (readonly)
Returns the value of attribute schwab_client_channel.
86 87 88 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 86 def schwab_client_channel @schwab_client_channel end |
#schwab_client_correl_id ⇒ Object (readonly)
Returns the value of attribute schwab_client_correl_id.
86 87 88 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 86 def schwab_client_correl_id @schwab_client_correl_id end |
#schwab_client_customer_id ⇒ Object (readonly)
Returns the value of attribute schwab_client_customer_id.
86 87 88 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 86 def schwab_client_customer_id @schwab_client_customer_id end |
#schwab_client_function_id ⇒ Object (readonly)
Returns the value of attribute schwab_client_function_id.
86 87 88 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 86 def schwab_client_function_id @schwab_client_function_id end |
#streamer_socket_url ⇒ Object (readonly)
Returns the value of attribute streamer_socket_url.
86 87 88 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 86 def streamer_socket_url @streamer_socket_url end |
Instance Method Details
#to_h ⇒ Object
97 98 99 100 101 102 103 104 105 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 97 def to_h { streamerSocketUrl: @streamer_socket_url, schwabClientCustomerId: @schwab_client_customer_id, schwabClientCorrelId: @schwab_client_correl_id, schwabClientChannel: @schwab_client_channel, schwabClientFunctionId: @schwab_client_function_id } end |