Module: Rubypress::Taxonomies

Included in:
Client
Defined in:
lib/rubypress/taxonomies.rb

Instance Method Summary collapse

Instance Method Details

#deleteTerm(options = {}) ⇒ Object



47
48
49
50
51
52
53
# File 'lib/rubypress/taxonomies.rb', line 47

def deleteTerm(options = {})
  default_options = {
    :taxonomy => nil,
    :term_id => nil
  }.deep_merge!(options)
  execute('deleteTerm', default_options)
end

#editTerm(options = {}) ⇒ Object



39
40
41
42
43
44
45
# File 'lib/rubypress/taxonomies.rb', line 39

def editTerm(options = {})
  default_options = {
    :term_id => nil,
    :content => {}
  }.deep_merge!(options)
  execute('editTerm', default_options)
end

#getTaxonomies(options = {}) ⇒ Object



12
13
14
# File 'lib/rubypress/taxonomies.rb', line 12

def getTaxonomies(options = {})
  execute('getTaxonomies', options)
end

#getTaxonomy(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/rubypress/taxonomies.rb', line 5

def getTaxonomy(options = {})
  default_options = {
    :taxonomy => 'category'
  }.deep_merge!(options)
  execute('getTaxonomy', default_options)
end

#getTerm(options = {}) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/rubypress/taxonomies.rb', line 16

def getTerm(options = {})
  default_options = {
    :taxonomy => 'category',
    :term_id => nil
  }.deep_merge!(options)
  execute('getTerm', default_options)
end

#getTerms(options = {}) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/rubypress/taxonomies.rb', line 24

def getTerms(options = {})
  default_options = {
    :taxonomy => 'category',
    :filter => {}
  }.deep_merge!(options)
  execute('getTerms', default_options)
end

#newTerm(options = {}) ⇒ Object



32
33
34
35
36
37
# File 'lib/rubypress/taxonomies.rb', line 32

def newTerm(options = {})
  default_options = {
    :content => {}
  }.deep_merge!(options)
  execute('newTerm', default_options)
end