Module: Simplewoo::Client::Entity
- Included in:
- Simplewoo::Client
- Defined in:
- lib/simplewoo/client/entity.rb
Instance Method Summary collapse
-
#entities(slider_id, page_id = 1, options = {}) ⇒ Hashie::Mash
Returns the matched entities for the slider.
-
#entity(slider_id, entity_id, options = {}) ⇒ Hashie::Mash
Returns matched the entity.
Instance Method Details
#entities(slider_id, page_id = 1, options = {}) ⇒ Hashie::Mash
Returns the matched entities for the slider
Simplewoo::Client.entities(1)
13 14 15 |
# File 'lib/simplewoo/client/entity.rb', line 13 def entities(, page_id=1, = {}) get("/sliders/#{slider_id}/entities/page/#{page_id}", ) end |
#entity(slider_id, entity_id, options = {}) ⇒ Hashie::Mash
Returns matched the entity
Simplewoo::Client.entity(1, 1)
26 27 28 |
# File 'lib/simplewoo/client/entity.rb', line 26 def entity(, entity_id, = {}) get("/sliders/#{slider_id}/entities/#{entity_id}", ) end |