Class: Marver::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/marver/entities/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Image

Returns a new instance of Image.



5
6
7
# File 'lib/marver/entities/image.rb', line 5

def initialize(json)
  @full_path = json['path'] + '.' + json['extension']
end

Instance Attribute Details

#full_pathObject (readonly)

Returns the value of attribute full_path.



3
4
5
# File 'lib/marver/entities/image.rb', line 3

def full_path
  @full_path
end