Module: Rubypress::Taxonomies
- Included in:
- Client
- Defined in:
- lib/rubypress/taxonomies.rb
Instance Method Summary collapse
- #deleteTerm(options = {}) ⇒ Object
- #editTerm(options = {}) ⇒ Object
- #getTaxonomies(options = {}) ⇒ Object
- #getTaxonomy(options = {}) ⇒ Object
- #getTerm(options = {}) ⇒ Object
- #getTerms(options = {}) ⇒ Object
- #newTerm(options = {}) ⇒ Object
Instance Method Details
#deleteTerm(options = {}) ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/rubypress/taxonomies.rb', line 47 def deleteTerm( = {}) = { :taxonomy => nil, :term_id => nil }.deep_merge!() execute('deleteTerm', ) end |
#editTerm(options = {}) ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/rubypress/taxonomies.rb', line 39 def editTerm( = {}) = { :term_id => nil, :content => {} }.deep_merge!() execute('editTerm', ) end |
#getTaxonomies(options = {}) ⇒ Object
12 13 14 |
# File 'lib/rubypress/taxonomies.rb', line 12 def getTaxonomies( = {}) execute('getTaxonomies', ) end |
#getTaxonomy(options = {}) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/rubypress/taxonomies.rb', line 5 def getTaxonomy( = {}) = { :taxonomy => 'category' }.deep_merge!() execute('getTaxonomy', ) end |
#getTerm(options = {}) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/rubypress/taxonomies.rb', line 16 def getTerm( = {}) = { :taxonomy => 'category', :term_id => nil }.deep_merge!() execute('getTerm', ) end |
#getTerms(options = {}) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/rubypress/taxonomies.rb', line 24 def getTerms( = {}) = { :taxonomy => 'category', :filter => {} }.deep_merge!() execute('getTerms', ) end |
#newTerm(options = {}) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/rubypress/taxonomies.rb', line 32 def newTerm( = {}) = { :content => {} }.deep_merge!() execute('newTerm', ) end |