Class: Flock::Edges::ExecuteOperations

Inherits:
Object
  • Object
show all
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_fieldsObject



212
# File 'lib/flock/gen-rb/flockdb_types.rb', line 212

def struct_fields; FIELDS; end

#validateObject



214
215
216
217
218
# File 'lib/flock/gen-rb/flockdb_types.rb', line 214

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