struct Facebook::Proto::Hotel

Included Modules

Defined in:

cli/proto/facebook/Hotel.pb.cr

Constant 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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

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) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def []=(key : String, val) #

def []?(key : String) #

def address : String | Nil #

def address=(address : String | Nil) #

def base_price : Int64 | Nil #

def base_price=(base_price : Int64 | Nil) #

def brand : String | Nil #

def brand=(brand : String | Nil) #

def currency : String | Nil #

def currency=(currency : String | Nil) #

def description : String | Nil #

def description=(description : String | Nil) #

def guest_ratings : String | Nil #

def guest_ratings=(guest_ratings : String | Nil) #

def hotel_id : String | Nil #

def hotel_id=(hotel_id : String | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def images : Array(String) | Nil #

def images=(images : Array(String) | Nil) #

def images=(images : Array(String) | Nil) #

def lowest_base_price : String | Nil #

def lowest_base_price=(lowest_base_price : String | Nil) #

def loyalty_program : String | Nil #

def loyalty_program=(loyalty_program : String | Nil) #

def margin_level : Int64 | Nil #

def margin_level=(margin_level : Int64 | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def phone : String | Nil #

def phone=(phone : String | Nil) #

def sale_price : String | Nil #

def sale_price=(sale_price : String | Nil) #

def sanitized_images : Array(String) | Nil #

def sanitized_images=(sanitized_images : Array(String) | Nil) #

def sanitized_images=(sanitized_images : Array(String) | Nil) #

def star_rating : Float64 | Nil #

def star_rating=(star_rating : Float64 | Nil) #

def to_hash #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def url : String | Nil #

def url=(url : String | Nil) #