Class: Raygun::TemplateRepo
- Inherits:
-
Object
- Object
- Raygun::TemplateRepo
- Defined in:
- lib/raygun/template_repo.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sha ⇒ Object
readonly
Returns the value of attribute sha.
-
#tarball ⇒ Object
readonly
Returns the value of attribute tarball.
Instance Method Summary collapse
-
#initialize(repo) ⇒ TemplateRepo
constructor
A new instance of TemplateRepo.
Constructor Details
#initialize(repo) ⇒ TemplateRepo
5 6 7 8 |
# File 'lib/raygun/template_repo.rb', line 5 def initialize(repo) @name, @branch = repo.split('#').map(&:strip) fetch end |
Instance Attribute Details
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
3 4 5 |
# File 'lib/raygun/template_repo.rb', line 3 def branch @branch end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/raygun/template_repo.rb', line 3 def name @name end |
#sha ⇒ Object (readonly)
Returns the value of attribute sha.
3 4 5 |
# File 'lib/raygun/template_repo.rb', line 3 def sha @sha end |
#tarball ⇒ Object (readonly)
Returns the value of attribute tarball.
3 4 5 |
# File 'lib/raygun/template_repo.rb', line 3 def tarball @tarball end |