Class: Sequel::SchemaSharding::Finder::Result
- Inherits:
-
Object
- Object
- Sequel::SchemaSharding::Finder::Result
- Defined in:
- lib/sequel/schema-sharding/finder.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
-
#shard_number ⇒ Object
readonly
Returns the value of attribute shard_number.
Instance Method Summary collapse
-
#initialize(connection, schema, shard_number) ⇒ Result
constructor
A new instance of Result.
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
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
7 8 9 |
# File 'lib/sequel/schema-sharding/finder.rb', line 7 def connection @connection end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
7 8 9 |
# File 'lib/sequel/schema-sharding/finder.rb', line 7 def schema @schema end |
#shard_number ⇒ Object (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 |