Class: ProxES::Request::Snapshot

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ProxES::Request

#endpoint, from_env, #indices?, #initialize

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