Class: Spaceship::ConnectAPI::User
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::User
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/user.rb
Instance Attribute Summary collapse
-
#agreed_to_terms ⇒ Object
Returns the value of attribute agreed_to_terms.
-
#all_apps_visible ⇒ Object
Returns the value of attribute all_apps_visible.
-
#email ⇒ Object
Returns the value of attribute email.
-
#email_vetting_required ⇒ Object
Returns the value of attribute email_vetting_required.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#notifications ⇒ Object
Returns the value of attribute notifications.
-
#preferred_currency_territory ⇒ Object
Returns the value of attribute preferred_currency_territory.
-
#provisioning_allowed ⇒ Object
Returns the value of attribute provisioning_allowed.
-
#roles ⇒ Object
Returns the value of attribute roles.
-
#username ⇒ Object
Returns the value of attribute username.
Attributes included from Model
Class Method Summary collapse
-
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API.
- .find(email: nil, includes: nil) ⇒ Object
- .type ⇒ Object
Methods included from Model
#attr_mapping, included, #initialize, #update_attributes
Instance Attribute Details
#agreed_to_terms ⇒ Object
Returns the value of attribute agreed_to_terms.
12 13 14 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 12 def agreed_to_terms @agreed_to_terms end |
#all_apps_visible ⇒ Object
Returns the value of attribute all_apps_visible.
14 15 16 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 14 def all_apps_visible @all_apps_visible end |
#email ⇒ Object
Returns the value of attribute email.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 10 def email @email end |
#email_vetting_required ⇒ Object
Returns the value of attribute email_vetting_required.
16 17 18 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 16 def email_vetting_required @email_vetting_required end |
#first_name ⇒ Object
Returns the value of attribute first_name.
8 9 10 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 8 def first_name @first_name end |
#last_name ⇒ Object
Returns the value of attribute last_name.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 9 def last_name @last_name end |
#notifications ⇒ Object
Returns the value of attribute notifications.
17 18 19 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 17 def notifications @notifications end |
#preferred_currency_territory ⇒ Object
Returns the value of attribute preferred_currency_territory.
11 12 13 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 11 def preferred_currency_territory @preferred_currency_territory end |
#provisioning_allowed ⇒ Object
Returns the value of attribute provisioning_allowed.
15 16 17 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 15 def provisioning_allowed @provisioning_allowed end |
#roles ⇒ Object
Returns the value of attribute roles.
13 14 15 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 13 def roles @roles end |
#username ⇒ Object
Returns the value of attribute username.
7 8 9 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 7 def username @username end |
Class Method Details
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API
41 42 43 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 41 def self.all(filter: {}, includes: nil, limit: nil, sort: nil) return Spaceship::ConnectAPI.get_users(filter: filter, includes: includes) end |
.find(email: nil, includes: nil) ⇒ Object
45 46 47 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 45 def self.find(email: nil, includes: nil) return all(filter: { email: email }, includes: includes) end |
.type ⇒ Object
33 34 35 |
# File 'spaceship/lib/spaceship/connect_api/models/user.rb', line 33 def self.type return "users" end |