struct Facebook::Proto::Currency

Included Modules

Defined in:

cli/proto/facebook/Currency.pb.cr

Constant Summary

FIELDS = {1 => {name: :currency_offset, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :usd_exchange, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :usd_exchange_inverse, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :user_currency, 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

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(currency_offset : Int64 | Nil = nil, usd_exchange : Float64 | Nil = nil, usd_exchange_inverse : Float64 | Nil = nil, user_currency : String | 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_offset : Int64 | Nil #

def currency_offset=(currency_offset : Int64 | Nil) #

def to_hash #

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

def to_protobuf #

def usd_exchange : Float64 | Nil #

def usd_exchange=(usd_exchange : Float64 | Nil) #

def usd_exchange_inverse : Float64 | Nil #

def usd_exchange_inverse=(usd_exchange_inverse : Float64 | Nil) #

def user_currency : String | Nil #

def user_currency=(user_currency : String | Nil) #