Class: Rome2rio::Codeshare

Inherits:
Object
  • Object
show all
Defined in:
lib/rome2rio/response/codeshare.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Codeshare

Returns a new instance of Codeshare.



4
5
6
# File 'lib/rome2rio/response/codeshare.rb', line 4

def initialize(json)
  @airline = json["airline"]
end

Instance Attribute Details

#airlineObject (readonly)

Returns the value of attribute airline.



3
4
5
# File 'lib/rome2rio/response/codeshare.rb', line 3

def airline
  @airline
end