Class: Tastytrade::Models::User
- Defined in:
- lib/tastytrade/models/user.rb
Overview
Represents a Tastytrade user
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#external_id ⇒ Object
readonly
Returns the value of attribute external_id.
-
#is_professional ⇒ Object
readonly
Returns the value of attribute is_professional.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Tastytrade::Models::Base
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
7 8 9 |
# File 'lib/tastytrade/models/user.rb', line 7 def email @email end |
#external_id ⇒ Object (readonly)
Returns the value of attribute external_id.
7 8 9 |
# File 'lib/tastytrade/models/user.rb', line 7 def external_id @external_id end |
#is_professional ⇒ Object (readonly)
Returns the value of attribute is_professional.
7 8 9 |
# File 'lib/tastytrade/models/user.rb', line 7 def is_professional @is_professional end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
7 8 9 |
# File 'lib/tastytrade/models/user.rb', line 7 def username @username end |
Instance Method Details
#professional? ⇒ Boolean
9 10 11 |
# File 'lib/tastytrade/models/user.rb', line 9 def professional? @is_professional == true end |