Class: Smirk::Image
Constant Summary
Constants inherited from Client
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(info) ⇒ Image
constructor
A new instance of Image.
Methods inherited from Client
#albums, #categories, #find_album, #find_image, #find_image_exif, #logout
Constructor Details
#initialize(info) ⇒ Image
Returns a new instance of Image.
4 5 6 7 8 9 10 11 |
# File 'lib/smirk/image.rb', line 4 def initialize(info) info.each do |key, value| instance_variable_set("@#{key}", value) Image.instance_eval do attr_reader key.to_sym end end end |
Instance Method Details
#delete ⇒ Object
13 14 15 16 |
# File 'lib/smirk/image.rb', line 13 def delete params = default_params.merge!({:method => "smugmug.images.delete", :ImageID => id}) get(params) end |