Class: BinaryCodec::FieldInstance
- Inherits:
-
Object
- Object
- BinaryCodec::FieldInstance
- Defined in:
- lib/binary-codec/enums/fields.rb
Instance Attribute Summary collapse
-
#associated_type ⇒ Object
readonly
Returns the value of attribute associated_type.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#is_serialized ⇒ Object
readonly
Returns the value of attribute is_serialized.
-
#is_signing_field ⇒ Object
readonly
Returns the value of attribute is_signing_field.
-
#is_variable_length_encoded ⇒ Object
readonly
Returns the value of attribute is_variable_length_encoded.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nth ⇒ Object
readonly
Returns the value of attribute nth.
-
#ordinal ⇒ Object
readonly
Returns the value of attribute ordinal.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(nth:, is_variable_length_encoded:, is_serialized:, is_signing_field:, type:, ordinal:, name:, header:, associated_type:) ⇒ FieldInstance
constructor
A new instance of FieldInstance.
Constructor Details
#initialize(nth:, is_variable_length_encoded:, is_serialized:, is_signing_field:, type:, ordinal:, name:, header:, associated_type:) ⇒ FieldInstance
Returns a new instance of FieldInstance.
50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/binary-codec/enums/fields.rb', line 50 def initialize(nth:, is_variable_length_encoded:, is_serialized:, is_signing_field:, type:, ordinal:, name:, header:, associated_type:) @nth = nth @is_variable_length_encoded = is_variable_length_encoded @is_serialized = is_serialized @is_signing_field = is_signing_field @type = type @ordinal = ordinal @name = name @header = header @associated_type = associated_type end |
Instance Attribute Details
#associated_type ⇒ Object (readonly)
Returns the value of attribute associated_type.
48 49 50 |
# File 'lib/binary-codec/enums/fields.rb', line 48 def associated_type @associated_type end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
48 49 50 |
# File 'lib/binary-codec/enums/fields.rb', line 48 def header @header end |
#is_serialized ⇒ Object (readonly)
Returns the value of attribute is_serialized.
48 49 50 |
# File 'lib/binary-codec/enums/fields.rb', line 48 def is_serialized @is_serialized end |
#is_signing_field ⇒ Object (readonly)
Returns the value of attribute is_signing_field.
48 49 50 |
# File 'lib/binary-codec/enums/fields.rb', line 48 def is_signing_field @is_signing_field end |
#is_variable_length_encoded ⇒ Object (readonly)
Returns the value of attribute is_variable_length_encoded.
48 49 50 |
# File 'lib/binary-codec/enums/fields.rb', line 48 def is_variable_length_encoded @is_variable_length_encoded end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
48 49 50 |
# File 'lib/binary-codec/enums/fields.rb', line 48 def name @name end |
#nth ⇒ Object (readonly)
Returns the value of attribute nth.
48 49 50 |
# File 'lib/binary-codec/enums/fields.rb', line 48 def nth @nth end |
#ordinal ⇒ Object (readonly)
Returns the value of attribute ordinal.
48 49 50 |
# File 'lib/binary-codec/enums/fields.rb', line 48 def ordinal @ordinal end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
48 49 50 |
# File 'lib/binary-codec/enums/fields.rb', line 48 def type @type end |