struct Facebook::Proto::CurrencyAmount
- Facebook::Proto::CurrencyAmount
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/CurrencyAmount.pb.crConstant Summary
-
FIELDS =
{1 => {name: :amount, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :amount_in_hundredths, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :offsetted_amount, 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(amount : String | Nil = nil, amount_in_hundredths : String | Nil = nil, currency : String | Nil = nil, offsetted_amount : String | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #amount : String | Nil
- #amount=(amount : String | Nil)
- #amount_in_hundredths : String | Nil
- #amount_in_hundredths=(amount_in_hundredths : String | Nil)
- #currency : String | Nil
- #currency=(currency : String | Nil)
- #offsetted_amount : String | Nil
- #offsetted_amount=(offsetted_amount : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.new(amount : String | Nil = nil, amount_in_hundredths : String | Nil = nil, currency : String | Nil = nil, offsetted_amount : String | Nil = nil)
#