Class: Skyfall::CarSection
- Inherits:
-
Object
- Object
- Skyfall::CarSection
- Defined in:
- lib/skyfall/car_archive.rb
Instance Attribute Summary collapse
-
#cid ⇒ Object
readonly
Returns the value of attribute cid.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(cid, body_data) ⇒ CarSection
constructor
A new instance of CarSection.
Constructor Details
#initialize(cid, body_data) ⇒ CarSection
Returns a new instance of CarSection.
16 17 18 19 |
# File 'lib/skyfall/car_archive.rb', line 16 def initialize(cid, body_data) @cid = cid @body_data = body_data end |
Instance Attribute Details
#cid ⇒ Object (readonly)
Returns the value of attribute cid.
14 15 16 |
# File 'lib/skyfall/car_archive.rb', line 14 def cid @cid end |
Instance Method Details
#body ⇒ Object
21 22 23 |
# File 'lib/skyfall/car_archive.rb', line 21 def body @body ||= CarArchive.convert_data(CBOR.decode(@body_data)) end |