Class: Imageproxy::Identify

Inherits:
Command
  • Object
show all
Defined in:
lib/imageproxy/identify.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Identify

Returns a new instance of Identify.



5
6
7
# File 'lib/imageproxy/identify.rb', line 5

def initialize(options)
  @options = options
end

Instance Method Details

#execute(user_agent = nil) ⇒ Object



9
10
11
# File 'lib/imageproxy/identify.rb', line 9

def execute(user_agent=nil)
  execute_command %'#{curl @options.source, :user_agent => user_agent} | identify -verbose -'
end