class ProxES::Request::Create

Attributes

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

Public Instance Methods

endpoint() click to toggle source
# File lib/proxes/request/create.rb, line 18
def endpoint
  '_create'
end
index=(idx) click to toggle source
# File lib/proxes/request/create.rb, line 11
def index=(idx)
  @index = idx
  self.path_info = '/' + [index, type, id, endpoint].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/create.rb, line 32
def indices
  @index || []
end
indices?() click to toggle source
# File lib/proxes/request/create.rb, line 28
def indices?
  true
end
parse() click to toggle source
# File lib/proxes/request/create.rb, line 22
def parse
  @index ||= check_part(path_parts[0])
  @type ||= check_part(path_parts[1])
  @id ||= check_part(path_parts[2])
end