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
-
#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) ⇒ Commits
constructor
A new instance of Commits.
- #run ⇒ Object
Methods included from Utils
#camel_case_to_slug, #is_upper?, #symbolize_keys
Constructor Details
#initialize(author, duration, apps = ["*"], sandbox = false) ⇒ Commits
Returns a new instance of Commits.
16 17 18 19 20 21 22 |
# File 'lib/neetob/cli/users/commits.rb', line 16 def initialize(, duration, apps = ["*"], sandbox = false) super() @sandbox = sandbox @apps = apps @author = @duration = duration end |
Instance Attribute Details
#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
24 25 26 27 28 29 |
# File 'lib/neetob/cli/users/commits.rb', line 24 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 |