Class: SchwabRb::DataObjects::UserPreferences::StreamerInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/schwab_rb/data_objects/user_preferences.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_channelObject (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_idObject (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_idObject (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_idObject (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_urlObject (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_hObject



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