Class: Zoomit::Content

Inherits:
Object
  • Object
show all
Defined in:
lib/zoomit/content.rb

Class Method Summary collapse

Class Method Details

.find(id, options = {}) ⇒ Object



6
7
8
9
# File 'lib/zoomit/content.rb', line 6

def self.find(id, options={})
  response = Zoomit.perform_get("/content/#{id}", options)
  Response.new(response.parsed_response)
end

.find_by_url(url, options = {}) ⇒ Object Also known as: create



11
12
13
14
# File 'lib/zoomit/content.rb', line 11

def self.find_by_url(url, options={})
  response = Zoomit.perform_get("/content", options.merge!(:query => {:url => url}))
  Response.new(response.parsed_response)
end