Class: SchwabRb::DataObjects::UserPreferences::Offer
- Inherits:
-
Object
- Object
- SchwabRb::DataObjects::UserPreferences::Offer
- Defined in:
- lib/schwab_rb/data_objects/user_preferences.rb
Instance Attribute Summary collapse
-
#level2_permissions ⇒ Object
readonly
Returns the value of attribute level2_permissions.
-
#mkt_data_permission ⇒ Object
readonly
Returns the value of attribute mkt_data_permission.
Instance Method Summary collapse
-
#initialize(data) ⇒ Offer
constructor
A new instance of Offer.
- #level2_permissions? ⇒ Boolean
- #to_h ⇒ Object
Constructor Details
#initialize(data) ⇒ Offer
Returns a new instance of Offer.
111 112 113 114 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 111 def initialize(data) = data[:level2Permissions] = data[:mktDataPermission] end |
Instance Attribute Details
#level2_permissions ⇒ Object (readonly)
Returns the value of attribute level2_permissions.
109 110 111 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 109 def end |
#mkt_data_permission ⇒ Object (readonly)
Returns the value of attribute mkt_data_permission.
109 110 111 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 109 def end |
Instance Method Details
#level2_permissions? ⇒ Boolean
116 117 118 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 116 def end |
#to_h ⇒ Object
120 121 122 123 124 125 |
# File 'lib/schwab_rb/data_objects/user_preferences.rb', line 120 def to_h { level2Permissions: , mktDataPermission: } end |