Class: Neetob::CLI::Users::Commits
- Inherits:
-
Github::Base
- Object
- Base
- Github::Base
- Neetob::CLI::Users::Commits
- Includes:
- ActionView::Helpers::DateHelper
- Defined in:
- lib/neetob/cli/users/commits.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#all_neeto_repos ⇒ Object
Returns the value of attribute all_neeto_repos.
-
#apps ⇒ Object
Returns the value of attribute apps.
-
#author ⇒ Object
Returns the value of attribute author.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#sandbox ⇒ Object
Returns the value of attribute sandbox.
Attributes inherited from Github::Base
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(author, duration, apps = ["*"], sandbox = false, all_neeto_repos = false) ⇒ Commits
constructor
A new instance of Commits.
- #run ⇒ Object
Methods inherited from Github::Base
#check_for_apps_and_all_neeto_repos_option
Methods included from Utils
#camel_case_to_slug, #is_upper?, #symbolize_keys
Constructor Details
#initialize(author, duration, apps = ["*"], sandbox = false, all_neeto_repos = false) ⇒ Commits
Returns a new instance of Commits.
16 17 18 19 20 21 22 23 |
# File 'lib/neetob/cli/users/commits.rb', line 16 def initialize(, duration, apps = ["*"], sandbox = false, all_neeto_repos = false) super() @sandbox = sandbox @apps = apps @author = @duration = duration @all_neeto_repos = all_neeto_repos end |
Instance Attribute Details
#all_neeto_repos ⇒ Object
Returns the value of attribute all_neeto_repos.
14 15 16 |
# File 'lib/neetob/cli/users/commits.rb', line 14 def all_neeto_repos @all_neeto_repos end |
#apps ⇒ Object
Returns the value of attribute apps.
14 15 16 |
# File 'lib/neetob/cli/users/commits.rb', line 14 def apps @apps end |
#author ⇒ Object
Returns the value of attribute author.
14 15 16 |
# File 'lib/neetob/cli/users/commits.rb', line 14 def @author end |
#duration ⇒ Object
Returns the value of attribute duration.
14 15 16 |
# File 'lib/neetob/cli/users/commits.rb', line 14 def duration @duration end |
#sandbox ⇒ Object
Returns the value of attribute sandbox.
14 15 16 |
# File 'lib/neetob/cli/users/commits.rb', line 14 def sandbox @sandbox end |
Instance Method Details
#run ⇒ Object
25 26 27 28 29 30 |
# File 'lib/neetob/cli/users/commits.rb', line 25 def run table_rows = build_commit_rows html_content = build_html_content(table_rows) create_html_file(html_content) open_html_file_in_default_system_application end |