Class: Thanos::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/thanos/resources/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject (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