struct Facebook::Proto::Hotel
- Facebook::Proto::Hotel
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/Hotel.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: :address, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :brand, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :guest_ratings, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :hotel_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :images, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 9 => {name: :lowest_base_price, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :loyalty_program, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :margin_level, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :phone, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :sale_price, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :sanitized_images, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 16 => {name: :star_rating, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :base_price, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, 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, address : String | Nil = nil, brand : String | Nil = nil, currency : String | Nil = nil, description : String | Nil = nil, guest_ratings : String | Nil = nil, hotel_id : String | Nil = nil, images : Array(String) | Nil = nil, lowest_base_price : String | Nil = nil, loyalty_program : String | Nil = nil, margin_level : Int64 | Nil = nil, name : String | Nil = nil, phone : String | Nil = nil, sale_price : String | Nil = nil, sanitized_images : Array(String) | Nil = nil, star_rating : Float64 | Nil = nil, url : String | Nil = nil, base_price : Int64 | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #address : String | Nil
- #address=(address : String | Nil)
- #base_price : Int64 | Nil
- #base_price=(base_price : Int64 | Nil)
- #brand : String | Nil
- #brand=(brand : String | Nil)
- #currency : String | Nil
- #currency=(currency : String | Nil)
- #description : String | Nil
- #description=(description : String | Nil)
- #guest_ratings : String | Nil
- #guest_ratings=(guest_ratings : String | Nil)
- #hotel_id : String | Nil
- #hotel_id=(hotel_id : String | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #images : Array(String) | Nil
- #images=(images : Array(String) | Nil)
- #images=(images : Array(String) | Nil)
- #lowest_base_price : String | Nil
- #lowest_base_price=(lowest_base_price : String | Nil)
- #loyalty_program : String | Nil
- #loyalty_program=(loyalty_program : String | Nil)
- #margin_level : Int64 | Nil
- #margin_level=(margin_level : Int64 | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #phone : String | Nil
- #phone=(phone : String | Nil)
- #sale_price : String | Nil
- #sale_price=(sale_price : String | Nil)
- #sanitized_images : Array(String) | Nil
- #sanitized_images=(sanitized_images : Array(String) | Nil)
- #sanitized_images=(sanitized_images : Array(String) | Nil)
- #star_rating : Float64 | Nil
- #star_rating=(star_rating : Float64 | 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, address : String | Nil = nil, brand : String | Nil = nil, currency : String | Nil = nil, description : String | Nil = nil, guest_ratings : String | Nil = nil, hotel_id : String | Nil = nil, images : Array(String) | Nil = nil, lowest_base_price : String | Nil = nil, loyalty_program : String | Nil = nil, margin_level : Int64 | Nil = nil, name : String | Nil = nil, phone : String | Nil = nil, sale_price : String | Nil = nil, sanitized_images : Array(String) | Nil = nil, star_rating : Float64 | Nil = nil, url : String | Nil = nil, base_price : Int64 | Nil = nil)
#