Skip to content

Instantly share code, notes, and snippets.

@garyposter
Created December 9, 2015 02:25
Show Gist options
  • Save garyposter/f91cee1ef5e4545943c5 to your computer and use it in GitHub Desktop.
Save garyposter/f91cee1ef5e4545943c5 to your computer and use it in GitHub Desktop.
require Record
xml_path = Path.join([__DIR__, "data", "current_observation.hrl"])
Record.defrecord :current_observation,
Record.extract(:current_observation, from: xml_path)
Record.defrecord :imageType,
Record.extract(:imageType, from: xml_path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment