Class: SnapCi::Project
- Inherits:
-
Object
- Object
- SnapCi::Project
- Defined in:
- lib/snap_ci/project.rb
Instance Attribute Summary collapse
-
#branches ⇒ Object
readonly
Returns the value of attribute branches.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
Instance Method Summary collapse
-
#initialize(args, config) ⇒ Project
constructor
A new instance of Project.
- #to_message ⇒ Object
Constructor Details
#initialize(args, config) ⇒ Project
Returns a new instance of Project.
8 9 10 11 12 13 |
# File 'lib/snap_ci/project.rb', line 8 def initialize(args, config) @owner = args[:owner] @repository = args[:repository] @branches = args[:branches] @http = Http.new(config) end |
Instance Attribute Details
#branches ⇒ Object (readonly)
Returns the value of attribute branches.
6 7 8 |
# File 'lib/snap_ci/project.rb', line 6 def branches @branches end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
6 7 8 |
# File 'lib/snap_ci/project.rb', line 6 def owner @owner end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
6 7 8 |
# File 'lib/snap_ci/project.rb', line 6 def repository @repository end |
Instance Method Details
#to_message ⇒ Object
15 16 17 |
# File 'lib/snap_ci/project.rb', line 15 def "Project: #{owner}/#{repository}:\n" + pipelines_to_s end |