Class: Rome2rio::Aircraft
- Inherits:
-
Object
- Object
- Rome2rio::Aircraft
- Defined in:
- lib/rome2rio/response/aircraft.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#manufacturer ⇒ Object
readonly
Returns the value of attribute manufacturer.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(json) ⇒ Aircraft
constructor
A new instance of Aircraft.
Constructor Details
#initialize(json) ⇒ Aircraft
Returns a new instance of Aircraft.
4 5 6 7 8 |
# File 'lib/rome2rio/response/aircraft.rb', line 4 def initialize(json) @code = json["code"] @manufacturer = json["manufacturer"] @model = json["model"] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/rome2rio/response/aircraft.rb', line 3 def code @code end |
#manufacturer ⇒ Object (readonly)
Returns the value of attribute manufacturer.
3 4 5 |
# File 'lib/rome2rio/response/aircraft.rb', line 3 def manufacturer @manufacturer end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
3 4 5 |
# File 'lib/rome2rio/response/aircraft.rb', line 3 def model @model end |