Class: Streamingly::KV
- Inherits:
-
Struct
- Object
- Struct
- Streamingly::KV
- Defined in:
- lib/streamingly/kv.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#split(char = "\t", limit = 1) ⇒ Object
TODO: remove .split from github.com/swipely/streamingly/blob/master/lib/streamingly/reducer.rb#L28.
-
#strip ⇒ Object
TODO: remove .strip from github.com/swipely/streamingly/blob/master/lib/streamingly/reducer.rb#L11.
- #to_s ⇒ Object
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
3 4 5 |
# File 'lib/streamingly/kv.rb', line 3 def key @key end |
#value ⇒ Object
Returns the value of attribute value
3 4 5 |
# File 'lib/streamingly/kv.rb', line 3 def value @value end |
Instance Method Details
#split(char = "\t", limit = 1) ⇒ Object
TODO: remove .split from github.com/swipely/streamingly/blob/master/lib/streamingly/reducer.rb#L28
14 15 16 |
# File 'lib/streamingly/kv.rb', line 14 def split(char="\t", limit=1) [key, value] end |
#strip ⇒ Object
TODO: remove .strip from github.com/swipely/streamingly/blob/master/lib/streamingly/reducer.rb#L11
9 10 11 |
# File 'lib/streamingly/kv.rb', line 9 def strip self end |