Class: SchwabRb::DataObjects::OrderPreview::OrderValidationResult::Reject
- Inherits:
-
Object
- Object
- SchwabRb::DataObjects::OrderPreview::OrderValidationResult::Reject
- Defined in:
- lib/schwab_rb/data_objects/order_preview.rb
Instance Attribute Summary collapse
-
#reject_code ⇒ Object
readonly
Returns the value of attribute reject_code.
-
#reject_message ⇒ Object
readonly
Returns the value of attribute reject_message.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Reject
constructor
A new instance of Reject.
- #to_h ⇒ Object
Constructor Details
#initialize(attrs) ⇒ Reject
Returns a new instance of Reject.
131 132 133 134 |
# File 'lib/schwab_rb/data_objects/order_preview.rb', line 131 def initialize(attrs) @reject_code = attrs[:rejectCode] = attrs[:rejectMessage] end |
Instance Attribute Details
#reject_code ⇒ Object (readonly)
Returns the value of attribute reject_code.
129 130 131 |
# File 'lib/schwab_rb/data_objects/order_preview.rb', line 129 def reject_code @reject_code end |
#reject_message ⇒ Object (readonly)
Returns the value of attribute reject_message.
129 130 131 |
# File 'lib/schwab_rb/data_objects/order_preview.rb', line 129 def end |
Instance Method Details
#to_h ⇒ Object
136 137 138 139 140 141 |
# File 'lib/schwab_rb/data_objects/order_preview.rb', line 136 def to_h { rejectCode: @reject_code, rejectMessage: } end |