Class: Bricky::Image
- Inherits:
-
Object
- Object
- Bricky::Image
- Defined in:
- lib/bricky/image.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #full_path ⇒ Object
-
#initialize(image) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(image) ⇒ Image
Returns a new instance of Image.
6 7 8 9 |
# File 'lib/bricky/image.rb', line 6 def initialize(image) self.name = format_name(image) self.path = format_path(image) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/bricky/image.rb', line 3 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/bricky/image.rb', line 4 def path @path end |
Instance Method Details
#full_path ⇒ Object
11 12 13 |
# File 'lib/bricky/image.rb', line 11 def full_path "#{path}/Dockerfile" end |