Class: ProxES::Request::Snapshot

Inherits:
ProxES::Request show all
Defined in:
lib/proxes/request/snapshot.rb

Constant Summary

Constants inherited from ProxES::Request

ID_ENDPOINTS, WRITE_METHODS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ProxES::Request

#detail, #duration, #endpoint, from_env, #html?, #indices?, #initialize, path_endpoint, #user, #user_id

Constructor Details

This class inherits a constructor from ProxES::Request

Instance Attribute Details

#repositoryObject (readonly)

Returns the value of attribute repository.



9
10
11
# File 'lib/proxes/request/snapshot.rb', line 9

def repository
  @repository
end

Instance Method Details

#parseObject



11
12
13
14
# File 'lib/proxes/request/snapshot.rb', line 11

def parse
  @repository ||= check_part(path_parts[1])
  @repository = [] if repository.nil?
end