Class: Shipit::CommandLineUser
- Inherits:
-
Object
- Object
- Shipit::CommandLineUser
- Defined in:
- app/models/shipit/command_line_user.rb
Instance Method Summary collapse
- #authorized? ⇒ Boolean
- #avatar_uri ⇒ Object
- #avatar_url ⇒ Object
- #created_at ⇒ Object (also: #updated_at)
- #email ⇒ Object
- #github_api ⇒ Object
- #github_id ⇒ Object
- #id ⇒ Object
- #logged_in? ⇒ Boolean
- #login ⇒ Object
- #name ⇒ Object
- #present? ⇒ Boolean
- #read_attribute_for_serialization(attr) ⇒ Object
- #repositories_contributed_to ⇒ Object
- #stacks_contributed_to ⇒ Object
Instance Method Details
#authorized? ⇒ Boolean
33 34 35 |
# File 'app/models/shipit/command_line_user.rb', line 33 def Shipit.authentication_disabled? end |
#avatar_uri ⇒ Object
45 46 47 |
# File 'app/models/shipit/command_line_user.rb', line 45 def avatar_uri User::DEFAULT_AVATAR.dup end |
#avatar_url ⇒ Object
21 22 23 |
# File 'app/models/shipit/command_line_user.rb', line 21 def avatar_url 'https://github.com/images/error/octocat_happy.gif' end |
#created_at ⇒ Object Also known as: updated_at
49 50 51 |
# File 'app/models/shipit/command_line_user.rb', line 49 def created_at Time.at(0).utc end |
#email ⇒ Object
9 10 11 |
# File 'app/models/shipit/command_line_user.rb', line 9 def email 'command_line@example.com' end |
#github_api ⇒ Object
58 59 60 |
# File 'app/models/shipit/command_line_user.rb', line 58 def github_api Shipit.github.api end |
#github_id ⇒ Object
27 |
# File 'app/models/shipit/command_line_user.rb', line 27 def github_id; end |
#id ⇒ Object
25 |
# File 'app/models/shipit/command_line_user.rb', line 25 def id; end |
#logged_in? ⇒ Boolean
29 30 31 |
# File 'app/models/shipit/command_line_user.rb', line 29 def logged_in? false end |
#login ⇒ Object
13 14 15 |
# File 'app/models/shipit/command_line_user.rb', line 13 def login 'command_line' end |
#name ⇒ Object
17 18 19 |
# File 'app/models/shipit/command_line_user.rb', line 17 def name 'CommandLine' end |
#present? ⇒ Boolean
5 6 7 |
# File 'app/models/shipit/command_line_user.rb', line 5 def present? false end |
#read_attribute_for_serialization(attr) ⇒ Object
54 55 56 |
# File 'app/models/shipit/command_line_user.rb', line 54 def read_attribute_for_serialization(attr) public_send(attr) end |
#repositories_contributed_to ⇒ Object
37 38 39 |
# File 'app/models/shipit/command_line_user.rb', line 37 def repositories_contributed_to [] end |
#stacks_contributed_to ⇒ Object
41 42 43 |
# File 'app/models/shipit/command_line_user.rb', line 41 def stacks_contributed_to [] end |