Class: S3Light::ConcurrentResult
- Inherits:
-
Object
- Object
- S3Light::ConcurrentResult
- Defined in:
- lib/s3-light/concurrent_result.rb
Instance Method Summary collapse
- #add(key, value) ⇒ Object
-
#initialize ⇒ ConcurrentResult
constructor
A new instance of ConcurrentResult.
- #inspect ⇒ Object
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ ConcurrentResult
Returns a new instance of ConcurrentResult.
5 6 7 |
# File 'lib/s3-light/concurrent_result.rb', line 5 def initialize @hash = Concurrent::Hash.new end |
Instance Method Details
#add(key, value) ⇒ Object
9 10 11 |
# File 'lib/s3-light/concurrent_result.rb', line 9 def add(key, value) @hash[key] = value end |
#inspect ⇒ Object
17 18 19 |
# File 'lib/s3-light/concurrent_result.rb', line 17 def inspect "#<#{self.class.name} @hash=#{@hash}>" end |
#to_h ⇒ Object
13 14 15 |
# File 'lib/s3-light/concurrent_result.rb', line 13 def to_h @hash end |