Module: Consumer::IdentifierMacro

Defined in:
lib/consumer/consumer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#identifier(identifier = nil) ⇒ Object



229
230
231
232
233
234
235
# File 'lib/consumer/consumer.rb', line 229

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

Instance Method Details

#identifier_macro(identifier) ⇒ Object



225
226
227
# File 'lib/consumer/consumer.rb', line 225

def identifier_macro(identifier)
  self.identifier = identifier
end