Octokit v0.0.3 Octokit.Parser
General parsing functions for GitHub API responses.
Summary
Functions
Parses the the respones either in JSON String
or Map
form, inserts any
matches for fields
and returns in a record of struct
type
Types
field_list :: [atom, ...]
Functions
Specs
parse(String.t | Map.t, field_list, %{}) :: %{}
Parses the the respones either in JSON String
or Map
form, inserts any
matches for fields
and returns in a record of struct
type.
Examples
iex> foo = Octokit.Parser.parse("{\"test\": 1}", [:test], %Octokit.Repository{})
iex> foo.test
1