Class: JoinCentroidResponse
- Inherits:
-
Object
- Object
- JoinCentroidResponse
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen-rb/relevanced_protocol_types.rb
Constant Summary collapse
- ID =
1
- RECALCULATED =
2
- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id'}, RECALCULATED => {:type => ::Thrift::Types::BOOL, :name => 'recalculated'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
697 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 697 def struct_fields; FIELDS; end |
#validate ⇒ Object
699 700 701 702 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 699 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field recalculated is unset!') if @recalculated.nil? end |