Class: ProxES::Request::Search
Instance Attribute Summary collapse
Instance Method Summary
collapse
from_env, #initialize
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
9
10
11
|
# File 'lib/proxes/request/search.rb', line 9
def index
@index
end
|
#type ⇒ Object
Returns the value of attribute type.
9
10
11
|
# File 'lib/proxes/request/search.rb', line 9
def type
@type
end
|
Instance Method Details
#endpoint ⇒ Object
19
20
21
|
# File 'lib/proxes/request/search.rb', line 19
def endpoint
'_search'
end
|
#id ⇒ Object
29
30
31
|
# File 'lib/proxes/request/search.rb', line 29
def id
@id == [] ? nil : @id
end
|
#indices? ⇒ Boolean
33
34
35
|
# File 'lib/proxes/request/search.rb', line 33
def indices?
true
end
|
#parse ⇒ Object
23
24
25
26
27
|
# File 'lib/proxes/request/search.rb', line 23
def parse
@index ||= check_part(path_parts[0])
@type ||= check_part(path_parts[1])
@id ||= check_part(path_parts[2])
end
|