Class: Protobug::Field::FloatField
- Inherits:
-
DoubleField
- Object
- Protobug::Field
- DoubleField
- Protobug::Field::FloatField
- Defined in:
- lib/protobug/field.rb
Constant Summary
Constants inherited from Protobug::Field
Instance Attribute Summary
Attributes inherited from Protobug::Field
#adder, #cardinality, #clearer, #haser, #ivar, #json_name, #name, #number, #oneof, #setter
Instance Method Summary collapse
Methods inherited from DoubleField
#binary_decode_one, #binary_encode_one, #default, #initialize, #json_decode_one, #json_encode_one
Methods inherited from Protobug::Field
#adder_method_definition, #binary_decode, #binary_encode, #initialize, #json_decode, #json_encode, #json_key_encode, #method_definitions, #optional?, #packed?, #pretty_print, #proto3_optional?, #repeated?, #to_text, #validate!
Constructor Details
This class inherits a constructor from Protobug::Field::DoubleField
Instance Method Details
#binary_pack ⇒ Object
922 923 924 |
# File 'lib/protobug/field.rb', line 922 def binary_pack "e" end |
#type ⇒ Object
918 919 920 |
# File 'lib/protobug/field.rb', line 918 def type :float end |
#wire_type ⇒ Object
926 927 928 |
# File 'lib/protobug/field.rb', line 926 def wire_type 5 end |