Class: FccContentApi::Content

Inherits:
Object
  • Object
show all
Defined in:
lib/fcc-content-api.rb

Class Method Summary collapse

Class Method Details

.allObject



16
17
18
# File 'lib/fcc-content-api.rb', line 16

def self.all
	Query.new(self).all
end

.find(id) ⇒ Object



20
21
22
23
# File 'lib/fcc-content-api.rb', line 20

def self.find(id)
	resp = FccContentApi::Client.new.get(:id => id).perform.body
	JSON.parse resp
end

.where(*args) ⇒ Object



12
13
14
# File 'lib/fcc-content-api.rb', line 12

def self.where(*args)
	Query.new(self).where(*args)
end