Module: Simplewoo::Client::Tag
- Included in:
- Simplewoo::Client
- Defined in:
- lib/simplewoo/client/tag.rb
Instance Method Summary collapse
-
#add_tag(slider_id, tag_id, value, options = {}) ⇒ Object
Returns the matched entities and matched personalities for the slider.
-
#tag(tag_id, options = {}) ⇒ Hashie::Mash
Returns a tag.
Instance Method Details
#add_tag(slider_id, tag_id, value, options = {}) ⇒ Object
Returns the matched entities and matched personalities for the slider
Simplewoo::Client.add_tag(1, 1, true)
13 14 15 16 |
# File 'lib/simplewoo/client/tag.rb', line 13 def add_tag(, tag_id, value, = {}) .merge!(me: value) post("/sliders/#{slider_id}/tags/#{tag_id}/add", ) end |
#tag(tag_id, options = {}) ⇒ Hashie::Mash
Returns a tag
Simplewoo::Client.tag(1, 1, true)
26 27 28 |
# File 'lib/simplewoo/client/tag.rb', line 26 def tag(tag_id, = {}) get("/tags/#{tag_id}", ) end |