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
# File 'lib/gistory/configuration.rb', line 8

def initialize
  @max_fetched_commits = 100
  @all_branches = 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

Instance Method Details

#all_branches?Boolean

Returns:

  • (Boolean)


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

def all_branches?
  @all_branches
end