Class: Image

Inherits:
Object
  • Object
show all
Defined in:
lib/annlat/AnnLat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, options = {:dynamic => true}) ⇒ Image

Returns a new instance of Image.



157
158
159
160
161
# File 'lib/annlat/AnnLat.rb', line 157

def initialize(path, options={:dynamic => true})
  @options=options
  @path=path
  @uuid=SecureRandom.uuid
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



154
155
156
# File 'lib/annlat/AnnLat.rb', line 154

def options
  @options
end

#pathObject

Returns the value of attribute path.



152
153
154
# File 'lib/annlat/AnnLat.rb', line 152

def path
  @path
end

#uuidObject (readonly)

Returns the value of attribute uuid.



153
154
155
# File 'lib/annlat/AnnLat.rb', line 153

def uuid
  @uuid
end

Instance Method Details

#my_jsonObject



163
164
165
# File 'lib/annlat/AnnLat.rb', line 163

def my_json
  path
end