Class: Mxrb::Compiler::ModelPackage::Entry
- Inherits:
-
Data
- Object
- Data
- Mxrb::Compiler::ModelPackage::Entry
- Defined in:
- lib/mxrb/compiler/model_package.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document
11 12 13 |
# File 'lib/mxrb/compiler/model_package.rb', line 11 def document @document end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset
11 12 13 |
# File 'lib/mxrb/compiler/model_package.rb', line 11 def offset @offset end |
#size ⇒ Object (readonly)
Returns the value of attribute size
11 12 13 |
# File 'lib/mxrb/compiler/model_package.rb', line 11 def size @size end |
Instance Method Details
#id ⇒ Object
12 |
# File 'lib/mxrb/compiler/model_package.rb', line 12 def id = IO::BsonCodec.extract_id(document['$ID']) |
#type ⇒ Object
13 |
# File 'lib/mxrb/compiler/model_package.rb', line 13 def type = document['$Type'].to_s |