Skip to content

Better api for datapoint variables #3

@virolea

Description

@virolea

Add custom getters for each available variable for a given Datapoint:

# now 
datapoint["Speed"] # => 213 

# target
datapoint.speed # => 213 

We could also take this opportunity to memoize the result of reading variable from the IO stream

Have a custom error raised if a variable called on a datapoint does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions