Method: Moped::ReadPreference::Selectable#initialize

Defined in:
lib/moped/read_preference/selectable.rb

#initialize(tags = nil) ⇒ Object

Instantiate the new taggable read preference.

Examples:

Instantiate the taggable.

Moped::ReadPreference::Secondary.new({ east_coast: 1 })

Since:

  • 2.0.0



23
24
25
# File 'lib/moped/read_preference/selectable.rb', line 23

def initialize(tags = nil)
  @tags = tags
end