struct Facebook::Proto::Currency
- Facebook::Proto::Currency
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/Currency.pb.crConstant 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
- .new(buf : Protobuf::Buffer)
- .new(currency_offset : Int64 | Nil = nil, usd_exchange : Float64 | Nil = nil, usd_exchange_inverse : Float64 | Nil = nil, user_currency : String | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #currency_offset : Int64 | Nil
- #currency_offset=(currency_offset : Int64 | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #usd_exchange : Float64 | Nil
- #usd_exchange=(usd_exchange : Float64 | Nil)
- #usd_exchange_inverse : Float64 | Nil
- #usd_exchange_inverse=(usd_exchange_inverse : Float64 | Nil)
- #user_currency : String | Nil
- #user_currency=(user_currency : String | Nil)
Constructor Detail
def self.new(currency_offset : Int64 | Nil = nil, usd_exchange : Float64 | Nil = nil, usd_exchange_inverse : Float64 | Nil = nil, user_currency : String | Nil = nil)
#