Class: Flock::Edges::ExecuteOperations
- Inherits:
-
Object
- Object
- Flock::Edges::ExecuteOperations
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/flock/gen-rb/flockdb_types.rb
Constant Summary collapse
- OPERATIONS =
1
- EXECUTE_AT =
2
- PRIORITY =
3
- FIELDS =
{ OPERATIONS => {:type => ::Thrift::Types::LIST, :name => 'operations', :element => {:type => ::Thrift::Types::STRUCT, :class => Flock::Edges::ExecuteOperation}}, EXECUTE_AT => {:type => ::Thrift::Types::I32, :name => 'execute_at', :optional => true}, PRIORITY => {:type => ::Thrift::Types::I32, :name => 'priority', :enum_class => Flock::Edges::Priority} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
234 |
# File 'lib/flock/gen-rb/flockdb_types.rb', line 234 def struct_fields; FIELDS; end |
#validate ⇒ Object
236 237 238 239 240 |
# File 'lib/flock/gen-rb/flockdb_types.rb', line 236 def validate unless @priority.nil? || Flock::Edges::Priority::VALID_VALUES.include?(@priority) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field priority!') end end |