Class: Rome2rio::Codeshare
- Inherits:
-
Object
- Object
- Rome2rio::Codeshare
- Defined in:
- lib/rome2rio/response/codeshare.rb
Instance Attribute Summary collapse
-
#airline ⇒ Object
readonly
Returns the value of attribute airline.
Instance Method Summary collapse
-
#initialize(json) ⇒ Codeshare
constructor
A new instance of Codeshare.
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
#airline ⇒ Object (readonly)
Returns the value of attribute airline.
3 4 5 |
# File 'lib/rome2rio/response/codeshare.rb', line 3 def airline @airline end |