Class: MassTransit::Urn

Inherits:
Object
  • Object
show all
Defined in:
lib/masstransit/urn.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Urn


6
7
8
9
10
11
# File 'lib/masstransit/urn.rb', line 6

def initialize(args)
  if args.class == Class
    args = args.to_s.sub '::',':'
  end
  @kind = args.sub '.',':'
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind


4
5
6
# File 'lib/masstransit/urn.rb', line 4

def kind
  @kind
end