Class: Tastytrade::Models::User

Inherits:
Base
  • Object
show all
Defined in:
lib/tastytrade/models/user.rb

Overview

Represents a Tastytrade user

Instance Attribute Summary collapse

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Tastytrade::Models::Base

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



7
8
9
# File 'lib/tastytrade/models/user.rb', line 7

def email
  @email
end

#external_idObject (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_professionalObject (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

#usernameObject (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

Returns:

  • (Boolean)


9
10
11
# File 'lib/tastytrade/models/user.rb', line 9

def professional?
  @is_professional == true
end