class PokelocParser::NumberResult
Attributes
approaching[RW]
destination[RW]
number[RW]
statuses[RW]
Public Class Methods
new(approaching:, number:, destination:, statuses:)
click to toggle source
# File lib/pokeloc_parser/parser.rb, line 63 def initialize(approaching:, number:, destination:, statuses:) @approaching = approaching @number = number @destination = destination @statuses = statuses end
Public Instance Methods
to_h()
click to toggle source
# File lib/pokeloc_parser/parser.rb, line 70 def to_h { approaching: approaching, number: number, destination: destination, statuses: statuses, } end
to_json()
click to toggle source
# File lib/pokeloc_parser/parser.rb, line 78 def to_json to_h.to_json end