struct Facebook::Proto::Flight
- Facebook::Proto::Flight
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/Flight.pb.crConstant Summary
-
FIELDS =
{1 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :destination_airport, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :destination_city, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :flight_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :images, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 8 => {name: :oneway_currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :oneway_price, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :origin_airport, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :origin_city, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :price, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :sanitized_images, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 14 => {name: :url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
-
Fields =
{} of String => Field
Constructors
- .new(buf : Protobuf::Buffer)
- .new(id : String | Nil = nil, currency : String | Nil = nil, description : String | Nil = nil, destination_airport : String | Nil = nil, destination_city : String | Nil = nil, flight_id : String | Nil = nil, images : Array(String) | Nil = nil, oneway_currency : String | Nil = nil, oneway_price : String | Nil = nil, origin_airport : String | Nil = nil, origin_city : String | Nil = nil, price : String | Nil = nil, sanitized_images : Array(String) | Nil = nil, url : String | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #currency : String | Nil
- #currency=(currency : String | Nil)
- #description : String | Nil
- #description=(description : String | Nil)
- #destination_airport : String | Nil
- #destination_airport=(destination_airport : String | Nil)
- #destination_city : String | Nil
- #destination_city=(destination_city : String | Nil)
- #flight_id : String | Nil
- #flight_id=(flight_id : String | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #images : Array(String) | Nil
- #images=(images : Array(String) | Nil)
- #images=(images : Array(String) | Nil)
- #oneway_currency : String | Nil
- #oneway_currency=(oneway_currency : String | Nil)
- #oneway_price : String | Nil
- #oneway_price=(oneway_price : String | Nil)
- #origin_airport : String | Nil
- #origin_airport=(origin_airport : String | Nil)
- #origin_city : String | Nil
- #origin_city=(origin_city : String | Nil)
- #price : String | Nil
- #price=(price : String | Nil)
- #sanitized_images : Array(String) | Nil
- #sanitized_images=(sanitized_images : Array(String) | Nil)
- #sanitized_images=(sanitized_images : Array(String) | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #url : String | Nil
- #url=(url : String | Nil)
Constructor Detail
def self.new(id : String | Nil = nil, currency : String | Nil = nil, description : String | Nil = nil, destination_airport : String | Nil = nil, destination_city : String | Nil = nil, flight_id : String | Nil = nil, images : Array(String) | Nil = nil, oneway_currency : String | Nil = nil, oneway_price : String | Nil = nil, origin_airport : String | Nil = nil, origin_city : String | Nil = nil, price : String | Nil = nil, sanitized_images : Array(String) | Nil = nil, url : String | Nil = nil)
#