Class: API::Entity

Inherits:
Object
  • Object
show all
Defined in:
lib/quintype/api/entity.rb

Class Method Summary collapse

Class Method Details

.all(params) ⇒ Object



4
5
6
# File 'lib/quintype/api/entity.rb', line 4

def all(params)
  API.entities(params)
end

.find(id) ⇒ Object



8
9
10
# File 'lib/quintype/api/entity.rb', line 8

def find(id)
  API.find_entity(id)
end

.sub_entity(entity_id, sub_entity_id) ⇒ Object



12
13
14
# File 'lib/quintype/api/entity.rb', line 12

def sub_entity(entity_id, sub_entity_id)
  API.sub_entity(entity_id, sub_entity_id)
end