Class: BinaryCodec::FieldInstance

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_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_typeObject (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

#headerObject (readonly)

Returns the value of attribute header.



48
49
50
# File 'lib/binary-codec/enums/fields.rb', line 48

def header
  @header
end

#is_serializedObject (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_fieldObject (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_encodedObject (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

#nameObject (readonly)

Returns the value of attribute name.



48
49
50
# File 'lib/binary-codec/enums/fields.rb', line 48

def name
  @name
end

#nthObject (readonly)

Returns the value of attribute nth.



48
49
50
# File 'lib/binary-codec/enums/fields.rb', line 48

def nth
  @nth
end

#ordinalObject (readonly)

Returns the value of attribute ordinal.



48
49
50
# File 'lib/binary-codec/enums/fields.rb', line 48

def ordinal
  @ordinal
end

#typeObject (readonly)

Returns the value of attribute type.



48
49
50
# File 'lib/binary-codec/enums/fields.rb', line 48

def type
  @type
end