Class: A2WS::Image

Inherits:
Object
  • Object
show all
Includes:
Methodize
Defined in:
lib/a2ws/image.rb

Instance Attribute Summary collapse

Attributes included from Methodize

#data_hash

Instance Method Summary collapse

Methods included from Methodize

#method_missing

Constructor Details

#initialize(size, data) ⇒ Image

Returns a new instance of Image.



9
10
11
# File 'lib/a2ws/image.rb', line 9

def initialize(size, data)
  @size, @data_hash = size, data
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Methodize

Instance Attribute Details

#sizeObject

Returns the value of attribute size.



6
7
8
# File 'lib/a2ws/image.rb', line 6

def size
  @size
end