Class: Fitreader::MessageType

Inherits:
Object
  • Object
show all
Defined in:
lib/fitreader/message_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition) ⇒ MessageType

Returns a new instance of MessageType.



6
7
8
9
10
# File 'lib/fitreader/message_type.rb', line 6

def initialize(definition)
  @definition = definition
  @records = []
  @undefined_records = []
end

Instance Attribute Details

#definitionObject (readonly)

Returns the value of attribute definition.



3
4
5
# File 'lib/fitreader/message_type.rb', line 3

def definition
  @definition
end

#recordsObject (readonly)

Returns the value of attribute records.



3
4
5
# File 'lib/fitreader/message_type.rb', line 3

def records
  @records
end

#undefined_recordsObject

Returns the value of attribute undefined_records.



4
5
6
# File 'lib/fitreader/message_type.rb', line 4

def undefined_records
  @undefined_records
end