Class: Travis::Client::User
Constant Summary
Constants inherited from Entity
Instance Attribute Summary collapse
-
#correct_scopes ⇒ Object
(also: #correct_scopes?)
readonly
Returns the value of attribute correct_scopes.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#gravatar_id ⇒ Object
readonly
Returns the value of attribute gravatar_id.
-
#is_syncing ⇒ Object
(also: #syncing?)
readonly
Returns the value of attribute is_syncing.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#login ⇒ Object
readonly
Returns the value of attribute login.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#synced_at ⇒ Object
Returns the value of attribute synced_at.
Attributes inherited from Entity
#attributes, #curry, #id, #session
Instance Method Summary collapse
Methods inherited from Entity
#[], #[]=, aka, #attribute_names, attributes, cast_id, #complete?, has, #include?, #initialize, #inspect, inspect_info, #load, many, #missing?, one, relations, #relations, #reload, subclass_for, subclasses, time, #update_attributes
Constructor Details
This class inherits a constructor from Travis::Client::Entity
Instance Attribute Details
#correct_scopes ⇒ Object (readonly) Also known as: correct_scopes?
Returns the value of attribute correct_scopes.
1 2 3 |
# File 'lib/travis/client/user.rb', line 1 def correct_scopes @correct_scopes end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
1 2 3 |
# File 'lib/travis/client/user.rb', line 1 def email @email end |
#gravatar_id ⇒ Object (readonly)
Returns the value of attribute gravatar_id.
1 2 3 |
# File 'lib/travis/client/user.rb', line 1 def gravatar_id @gravatar_id end |
#is_syncing ⇒ Object (readonly) Also known as: syncing?
Returns the value of attribute is_syncing.
1 2 3 |
# File 'lib/travis/client/user.rb', line 1 def is_syncing @is_syncing end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
1 2 3 |
# File 'lib/travis/client/user.rb', line 1 def locale @locale end |
#login ⇒ Object (readonly)
Returns the value of attribute login.
1 2 3 |
# File 'lib/travis/client/user.rb', line 1 def login @login end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
1 2 3 |
# File 'lib/travis/client/user.rb', line 1 def name @name end |
#synced_at ⇒ Object
Returns the value of attribute synced_at.
1 2 3 |
# File 'lib/travis/client/user.rb', line 1 def synced_at @synced_at end |
Instance Method Details
#sync ⇒ Object
17 18 19 20 |
# File 'lib/travis/client/user.rb', line 17 def sync session.post_raw('/users/sync') reload end |