Class: Sequel::SchemaSharding::Finder::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/sequel/schema-sharding/finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection, schema, shard_number) ⇒ Result

Returns a new instance of Result.



9
10
11
12
13
# File 'lib/sequel/schema-sharding/finder.rb', line 9

def initialize(connection, schema, shard_number)
  @connection = connection
  @schema = schema
  @shard_number = shard_number
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



7
8
9
# File 'lib/sequel/schema-sharding/finder.rb', line 7

def connection
  @connection
end

#schemaObject (readonly)

Returns the value of attribute schema.



7
8
9
# File 'lib/sequel/schema-sharding/finder.rb', line 7

def schema
  @schema
end

#shard_numberObject (readonly)

Returns the value of attribute shard_number.



7
8
9
# File 'lib/sequel/schema-sharding/finder.rb', line 7

def shard_number
  @shard_number
end