Class: BinaryCodec::FieldInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/binary-codec/enums/fields.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nth:, is_vl_encoded:, is_serialized:, is_signing_field:, type:) ⇒ FieldInfo

Returns a new instance of FieldInfo.



36
37
38
39
40
41
42
# File 'lib/binary-codec/enums/fields.rb', line 36

def initialize(nth:, is_vl_encoded:, is_serialized:, is_signing_field:, type:)
  @nth = nth
  @is_vl_encoded = is_vl_encoded
  @is_serialized = is_serialized
  @is_signing_field = is_signing_field
  @type = type
end

Instance Attribute Details

#is_serializedObject (readonly)

Returns the value of attribute is_serialized.



34
35
36
# File 'lib/binary-codec/enums/fields.rb', line 34

def is_serialized
  @is_serialized
end

#is_signing_fieldObject (readonly)

Returns the value of attribute is_signing_field.



34
35
36
# File 'lib/binary-codec/enums/fields.rb', line 34

def is_signing_field
  @is_signing_field
end

#is_vl_encodedObject (readonly)

Returns the value of attribute is_vl_encoded.



34
35
36
# File 'lib/binary-codec/enums/fields.rb', line 34

def is_vl_encoded
  @is_vl_encoded
end

#nthObject (readonly)

Returns the value of attribute nth.



34
35
36
# File 'lib/binary-codec/enums/fields.rb', line 34

def nth
  @nth
end

#typeObject (readonly)

Returns the value of attribute type.



34
35
36
# File 'lib/binary-codec/enums/fields.rb', line 34

def type
  @type
end