Module: ImagizerEngine

Extended by:
ImagizerEngine
Included in:
ImagizerEngine
Defined in:
lib/imagizer_engine.rb,
lib/imagizer_engine.rb,
lib/imagizer_engine/url.rb,
lib/imagizer_engine/mount.rb,
lib/imagizer_engine/version.rb,
lib/imagizer_engine/orm/activerecord.rb

Defined Under Namespace

Modules: ActiveRecord, Mount Classes: Railtie, Url, Version

Constant Summary collapse

VERSION =
"0.0.7"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#use_sslObject

Returns the value of attribute use_ssl.



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

def use_ssl
  @use_ssl
end

Instance Method Details

#[](name) ⇒ Object



24
25
26
# File 'lib/imagizer_engine.rb', line 24

def [](name)
  definitions[name.to_sym]
end

#configure(&block) ⇒ Object



12
13
14
# File 'lib/imagizer_engine.rb', line 12

def configure(&block)
  instance_eval(&block)
end

#definitionsObject



16
17
18
# File 'lib/imagizer_engine.rb', line 16

def definitions
  @definitions ||= Hash.new
end

#version(name, options = {}) ⇒ Object



20
21
22
# File 'lib/imagizer_engine.rb', line 20

def version(name, options={})  
  definitions[name.to_sym] = Version.new(name, options)
end