Method: ActiveShard::ShardCollection#shard

Defined in:
lib/active_shard/shard_collection.rb

#shard(name) ⇒ ShardDefinition

Returns a Shard Definition by the shard name

Returns:



28
29
30
# File 'lib/active_shard/shard_collection.rb', line 28

def shard( name )
  definitions_by_name[ name.to_sym ]
end