class Chizuru::ConsumerHelper

Helper for DSL

Attributes

consumer[R]

Gets the consumer.

credential[R]

Gets the credentials.

Public Class Methods

new(cons, credential) click to toggle source

Initializes an instance of ConsumerHelper. cons is the consumer, credential is the credential.

# File lib/chizuru/bot.rb, line 13
def initialize(cons, credential)
  @consumer = cons
  @credential = credential
end

Public Instance Methods

deliverer(deliv) click to toggle source

Add deliverer

# File lib/chizuru/bot.rb, line 19
def deliverer(deliv)
  @consumer.add_deliverer(deliv)
end