Module: Consumer::Controls::Subscription
- Defined in:
- lib/consumer/controls/subscription.rb
Class Method Summary collapse
Class Method Details
.example(get: nil, batch_size: nil) ⇒ Object
4 5 6 7 8 |
# File 'lib/consumer/controls/subscription.rb', line 4 def self.example(get: nil, batch_size: nil) get ||= Get.example(batch_size: batch_size) ::Consumer::Subscription.new(get, position) end |
.get ⇒ Object
10 11 12 |
# File 'lib/consumer/controls/subscription.rb', line 10 def self.get Get.example end |
.position ⇒ Object
14 15 16 |
# File 'lib/consumer/controls/subscription.rb', line 14 def self.position Position::Global.example end |