Module: Consumer::IdentifierMacro

Defined in:
lib/consumer/consumer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#identifier(identifier = nil) ⇒ Object



158
159
160
161
162
163
164
# File 'lib/consumer/consumer.rb', line 158

def identifier(identifier=nil)
  if identifier.nil?
    @identifier
  else
    identifier_macro(identifier)
  end
end

Instance Method Details

#identifier_macro(identifier) ⇒ Object



154
155
156
# File 'lib/consumer/consumer.rb', line 154

def identifier_macro(identifier)
  self.identifier = identifier
end