class ProxES::Request::Index

Attributes

id[R]
index[R]
type[R]

Public Instance Methods

endpoint() click to toggle source
# File lib/proxes/request/index.rb, line 18
def endpoint
  nil
end
index=(idx) click to toggle source
# File lib/proxes/request/index.rb, line 11
def index=(idx)
  @index = idx
  self.path_info = '/' + [index, type, id].compact
                                          .map { |v| v.is_a?(Array) ? v.join(',') : v }
                                          .select { |v| !v.nil? && v != '' }.join('/')
end
indices() click to toggle source
# File lib/proxes/request/index.rb, line 32
def indices
  @index || []
end
indices?() click to toggle source
# File lib/proxes/request/index.rb, line 28
def indices?
  true
end
parse() click to toggle source
# File lib/proxes/request/index.rb, line 22
def parse
  @index ||= check_part(path_parts[0])
  @type ||= check_part(path_parts[1])
  @id ||= check_part(path_parts[2])
end