Sha256: ae6803ab992c229b2a693a25169035f90f17a091021fcfb529a0c15141d81123

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

module Zoomit
  
  
  class Content
      
    def self.find(id, options={})
      response = Zoomit.perform_get("/content/#{id}", options)
      Response.new(response.parsed_response)
    end
    
    def self.find_by_url(url, options={})
      response = Zoomit.perform_get("/content", options.merge!(:query => {:url => url}))
      Response.new(response.parsed_response)
    end
    
    class << self
      alias :create :find_by_url
    end
    
  end


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zoomit-0.0.2 lib/zoomit/content.rb
zoomit-0.0.1 lib/zoomit/content.rb