Class: Octopi::Tag
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#sha ⇒ Object
Returns the value of attribute sha.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Tag
constructor
A new instance of Tag.
Methods included from Resource
Methods inherited from Base
Constructor Details
#initialize(*args) ⇒ Tag
Returns a new instance of Tag.
10 11 12 13 14 |
# File 'lib/octopi/tag.rb', line 10 def initialize(*args) args = args.flatten! self.name = args.first self.sha = args.last end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/octopi/tag.rb', line 5 def name @name end |
#sha ⇒ Object
Returns the value of attribute sha.
5 6 7 |
# File 'lib/octopi/tag.rb', line 5 def sha @sha end |