Class: EsHttpClient::Ref

Inherits:
Struct
  • Object
show all
Defined in:
lib/es_http_client/ref.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#etagObject

Returns the value of attribute etag

Returns:

  • (Object)

    the current value of etag



3
4
5
# File 'lib/es_http_client/ref.rb', line 3

def etag
  @etag
end

#uriObject

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



3
4
5
# File 'lib/es_http_client/ref.rb', line 3

def uri
  @uri
end

Class Method Details

.head_of(stream_name) ⇒ Object



5
6
7
# File 'lib/es_http_client/ref.rb', line 5

def self.head_of(stream_name)
  Ref.new("/streams/#{stream_name}", nil)
end