Class: Blakey::Repository::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/blakey/repository/base.rb

Direct Known Subclasses

Ruby

Defined Under Namespace

Classes: SourceRequired

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source = nil, options = {}) ⇒ Base

Returns a new instance of Base.

Raises:



6
7
8
9
10
11
# File 'lib/blakey/repository/base.rb', line 6

def initialize(source = nil, options = {})
  @source  = source
  @options = options

  raise SourceRequired, "Please pass a valid source" unless source
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



13
14
15
# File 'lib/blakey/repository/base.rb', line 13

def options
  @options
end

Instance Method Details

#source_overviewObject



15
16
17
# File 'lib/blakey/repository/base.rb', line 15

def source_overview
  source.repository_overview
end