Class: FccContentApi::Content

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

Class Method Summary collapse

Class Method Details

.allObject



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

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

.find(id) ⇒ Object



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

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

.where(*args) ⇒ Object



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

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