class Rome2rio::FlightLeg

Attributes

days[R]
hops[R]

Public Class Methods

new(json) click to toggle source
# File lib/rome2rio/response/flight_leg.rb, line 4
def initialize(json)
  @days = DayFlags.parse(json["days"])
  @hops = []
  json["hops"].each { |hop| @hops << FlightHop.new(hop) }
end