Class: LogStash::Inputs::RegistryItem
- Inherits:
-
Object
- Object
- LogStash::Inputs::RegistryItem
- Defined in:
- lib/logstash/inputs/azureblob.rb
Overview
require Dir[ File.dirname(__FILE__) + “/../../*_jars.rb” ].first Registry item to coordinate between mulitple clients
Instance Attribute Summary collapse
-
#etag ⇒ Object
Returns the value of attribute etag.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#gen ⇒ Object
Returns the value of attribute gen.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#reader ⇒ Object
Returns the value of attribute reader.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ Object
Allow json serialization.
-
#initialize(file_path, etag, reader, offset = 0, gen = 0) ⇒ RegistryItem
constructor
to_json.
-
#to_json(*options) ⇒ Object
as_json.
Constructor Details
#initialize(file_path, etag, reader, offset = 0, gen = 0) ⇒ RegistryItem
to_json
31 32 33 34 35 36 37 |
# File 'lib/logstash/inputs/azureblob.rb', line 31 def initialize(file_path, etag, reader, offset = 0, gen = 0) @file_path = file_path @etag = etag @reader = reader @offset = offset @gen = gen end |
Instance Attribute Details
#etag ⇒ Object
Returns the value of attribute etag.
15 16 17 |
# File 'lib/logstash/inputs/azureblob.rb', line 15 def etag @etag end |
#file_path ⇒ Object
Returns the value of attribute file_path.
15 16 17 |
# File 'lib/logstash/inputs/azureblob.rb', line 15 def file_path @file_path end |
#gen ⇒ Object
Returns the value of attribute gen.
15 16 17 |
# File 'lib/logstash/inputs/azureblob.rb', line 15 def gen @gen end |
#offset ⇒ Object
Returns the value of attribute offset.
15 16 17 |
# File 'lib/logstash/inputs/azureblob.rb', line 15 def offset @offset end |
#reader ⇒ Object
Returns the value of attribute reader.
15 16 17 |
# File 'lib/logstash/inputs/azureblob.rb', line 15 def reader @reader end |
Instance Method Details
#as_json(options = {}) ⇒ Object
Allow json serialization.
17 18 19 20 21 22 23 24 25 |
# File 'lib/logstash/inputs/azureblob.rb', line 17 def as_json(={}) { file_path: @file_path, etag: @etag, reader: @reader, offset: @offset, gen: @gen } end |
#to_json(*options) ⇒ Object
as_json
27 28 29 |
# File 'lib/logstash/inputs/azureblob.rb', line 27 def to_json(*) as_json(*).to_json(*) end |