class PokelocParser::Result

Attributes

got_at[RW]
numbers[RW]
station[RW]

Public Class Methods

new() click to toggle source
# File lib/pokeloc_parser/parser.rb, line 49
def initialize
  @numbers = []
end

Public Instance Methods

to_h() click to toggle source
# File lib/pokeloc_parser/parser.rb, line 53
def to_h
  { station: station, got_at: got_at, numbers: numbers.map(&:to_h) }
end
to_json() click to toggle source
# File lib/pokeloc_parser/parser.rb, line 56
def to_json
  to_h.to_json
end