Class: Thanos::Image
- Inherits:
-
Object
- Object
- Thanos::Image
- Defined in:
- lib/thanos/resources/image.rb
Instance Attribute Summary collapse
-
#full_path ⇒ Object
readonly
Returns the value of attribute full_path.
Instance Method Summary collapse
-
#initialize(data) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(data) ⇒ Image
Returns a new instance of Image.
5 6 7 |
# File 'lib/thanos/resources/image.rb', line 5 def initialize(data) @full_path = data['path'] + '.' + data['extension'] end |
Instance Attribute Details
#full_path ⇒ Object (readonly)
Returns the value of attribute full_path.
3 4 5 |
# File 'lib/thanos/resources/image.rb', line 3 def full_path @full_path end |