Class: Gistory::Configuration
- Inherits:
-
Object
- Object
- Gistory::Configuration
- Defined in:
- lib/gistory/configuration.rb
Instance Attribute Summary collapse
-
#all_branches ⇒ Object
writeonly
Sets the attribute all_branches.
-
#gem_name ⇒ Object
Returns the value of attribute gem_name.
-
#max_fetched_commits ⇒ Object
Returns the value of attribute max_fetched_commits.
-
#output_commit_hashes_only ⇒ Object
writeonly
Sets the attribute output_commit_hashes_only.
Instance Method Summary collapse
- #all_branches? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #output_commit_hashes_only? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 |
# File 'lib/gistory/configuration.rb', line 8 def initialize @max_fetched_commits = 100 @all_branches = false @output_commit_hashes_only = false end |
Instance Attribute Details
#all_branches=(value) ⇒ Object (writeonly)
Sets the attribute all_branches
6 7 8 |
# File 'lib/gistory/configuration.rb', line 6 def all_branches=(value) @all_branches = value end |
#gem_name ⇒ Object
Returns the value of attribute gem_name.
5 6 7 |
# File 'lib/gistory/configuration.rb', line 5 def gem_name @gem_name end |
#max_fetched_commits ⇒ Object
Returns the value of attribute max_fetched_commits.
5 6 7 |
# File 'lib/gistory/configuration.rb', line 5 def max_fetched_commits @max_fetched_commits end |
#output_commit_hashes_only=(value) ⇒ Object (writeonly)
Sets the attribute output_commit_hashes_only
6 7 8 |
# File 'lib/gistory/configuration.rb', line 6 def output_commit_hashes_only=(value) @output_commit_hashes_only = value end |
Instance Method Details
#all_branches? ⇒ Boolean
14 15 16 |
# File 'lib/gistory/configuration.rb', line 14 def all_branches? @all_branches end |
#output_commit_hashes_only? ⇒ Boolean
18 19 20 |
# File 'lib/gistory/configuration.rb', line 18 def output_commit_hashes_only? @output_commit_hashes_only end |