Class: Gistory::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gistory/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

Parameters:

  • value

    the value to set the attribute all_branches to.



6
7
8
# File 'lib/gistory/configuration.rb', line 6

def all_branches=(value)
  @all_branches = value
end

#gem_nameObject

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_commitsObject

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

Parameters:

  • value

    the value to set the attribute output_commit_hashes_only to.



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

Returns:

  • (Boolean)


14
15
16
# File 'lib/gistory/configuration.rb', line 14

def all_branches?
  @all_branches
end

#output_commit_hashes_only?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/gistory/configuration.rb', line 18

def output_commit_hashes_only?
  @output_commit_hashes_only
end