Class: WebSocketVCR::RecordEntry
- Inherits:
-
Object
- Object
- WebSocketVCR::RecordEntry
- Defined in:
- lib/simple_websocket_vcr/cassette.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
119 120 121 |
# File 'lib/simple_websocket_vcr/cassette.rb', line 119 def data @data end |
#operation ⇒ Object
Returns the value of attribute operation.
119 120 121 |
# File 'lib/simple_websocket_vcr/cassette.rb', line 119 def operation @operation end |
#type ⇒ Object
Returns the value of attribute type.
119 120 121 |
# File 'lib/simple_websocket_vcr/cassette.rb', line 119 def type @type end |
Class Method Details
.parse(obj) ⇒ Object
121 122 123 124 125 126 127 |
# File 'lib/simple_websocket_vcr/cassette.rb', line 121 def self.parse(obj) record_entry = RecordEntry.new record_entry.operation = obj['operation'] record_entry.type = obj['type'] if obj['type'] record_entry.data = obj['data'] if obj['data'] record_entry end |