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.



147
148
149
150
151
152
153
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 147

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.



145
146
147
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 145

def anchor
  @anchor
end

#geObject

Returns the value of attribute ge.



145
146
147
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 145

def ge
  @ge
end

#ltObject

Returns the value of attribute lt.



145
146
147
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 145

def lt
  @lt
end

#nameObject

Returns the value of attribute name.



145
146
147
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 145

def name
  @name
end

#titleObject

Returns the value of attribute title.



145
146
147
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 145

def title
  @title
end

Instance Method Details

#to_sObject



155
156
157
158
159
# File 'lib/ActiveDocument/mark_logic_search_options.rb', line 155

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