Class: ImageInfo::Parser
- Inherits:
-
Object
- Object
- ImageInfo::Parser
- Defined in:
- lib/image_info/parser.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(image, data) ⇒ Parser
constructor
A new instance of Parser.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/image_info/parser.rb', line 6 def data @data end |
#image ⇒ Object (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
#call ⇒ Object
13 14 15 16 |
# File 'lib/image_info/parser.rb', line 13 def call set_image_size set_image_type end |