struct Facebook::Proto::NativeOfferDiscount

Included Modules

Defined in:

cli/proto/facebook/NativeOfferDiscount.pb.cr

Constant Summary

FIELDS = {1 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :override, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :value1, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :value2, pb_type: :double, crystal_type: Float64, cast_type: Float64?, 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(currency : String | Nil = nil, override : String | Nil = nil, text : String | Nil = nil, type : String | Nil = nil, value1 : Float64 | Nil = nil, value2 : Float64 | 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 currency : String | Nil #

def currency=(currency : String | Nil) #

def override : String | Nil #

def override=(override : String | Nil) #

def text : String | Nil #

def text=(text : String | Nil) #

def to_hash #

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

def to_protobuf #

def type : String | Nil #

def type=(type : String | Nil) #

def value1 : Float64 | Nil #

def value1=(value1 : Float64 | Nil) #

def value2 : Float64 | Nil #

def value2=(value2 : Float64 | Nil) #