Class: ActiveDocument::MarkLogicSearchOptions::ComputedBucket

Inherits:
Object
  • Object
show all
Defined in:
lib/ActiveDocument/mark_logic_search_options.rb

Overview

end to_s

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, ge, lt, anchor, title) ⇒ ComputedBucket

Returns a new instance of ComputedBucket.



97
98
99
100
101
102
103
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 97

def initialize (name, ge, lt, anchor, title)
  @name = name
  @ge = ge
  @lt = lt
  @anchor = anchor
  @title = title
end

Instance Attribute Details

#anchorObject

Returns the value of attribute anchor.



95
96
97
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 95

def anchor
  @anchor
end

#geObject

Returns the value of attribute ge.



95
96
97
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 95

def ge
  @ge
end

#ltObject

Returns the value of attribute lt.



95
96
97
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 95

def lt
  @lt
end

#nameObject

Returns the value of attribute name.



95
96
97
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 95

def name
  @name
end

#titleObject

Returns the value of attribute title.



95
96
97
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 95

def title
  @title
end

Instance Method Details

#to_sObject



105
106
107
108
109
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 105

def to_s
  <<-XML
    <computed-bucket name="#{@name}" ge="#{@ge}" lt="#{@lt}" anchor="#{@anchor}">#{@title}</computed-bucket>
  XML
end