Class: FccContentApi::Content
- Inherits:
-
Object
- Object
- FccContentApi::Content
- Defined in:
- lib/fcc-content-api.rb
Class Method Summary collapse
Class Method Details
.all ⇒ Object
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 |