Class: Blakey::Repository::Base
- Inherits:
-
Object
- Object
- Blakey::Repository::Base
- Defined in:
- lib/blakey/repository/base.rb
Direct Known Subclasses
Defined Under Namespace
Classes: SourceRequired
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(source = nil, options = {}) ⇒ Base
constructor
A new instance of Base.
- #source_overview ⇒ Object
Constructor Details
#initialize(source = nil, options = {}) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'lib/blakey/repository/base.rb', line 6 def initialize(source = nil, = {}) @source = source @options = raise SourceRequired, "Please pass a valid source" unless source end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
13 14 15 |
# File 'lib/blakey/repository/base.rb', line 13 def @options end |
Instance Method Details
#source_overview ⇒ Object
15 16 17 |
# File 'lib/blakey/repository/base.rb', line 15 def source_overview source.repository_overview end |