Method: Marver::Image#initialize
- Defined in:
- lib/marver/entities/image.rb
#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 |