Class: ImageInfo::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/image_info/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image, data) ⇒ Parser

Returns a new instance of Parser.



8
9
10
11
# File 'lib/image_info/parser.rb', line 8

def initialize(image, data)
  @image = image
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



6
7
8
# File 'lib/image_info/parser.rb', line 6

def data
  @data
end

#imageObject (readonly)

Returns the value of attribute image.



6
7
8
# File 'lib/image_info/parser.rb', line 6

def image
  @image
end

Instance Method Details

#callObject



13
14
15
16
# File 'lib/image_info/parser.rb', line 13

def call
  set_image_size
  set_image_type
end