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.
18 19 20 21 |
# File 'lib/skyfall/car_archive.rb', line 18 def initialize(cid, body_data) @cid = cid @body_data = body_data end |
Instance Attribute Details
#cid ⇒ Object (readonly)
Returns the value of attribute cid.
16 17 18 |
# File 'lib/skyfall/car_archive.rb', line 16 def cid @cid end |
Instance Method Details
#body ⇒ Object
23 24 25 |
# File 'lib/skyfall/car_archive.rb', line 23 def body @body ||= CarArchive.convert_data(CBOR.decode(@body_data)) end |