Class: MassTransit::Urn
- Inherits:
-
Object
- Object
- MassTransit::Urn
- Defined in:
- lib/masstransit/urn.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
Instance Method Summary collapse
-
#initialize(args) ⇒ Urn
constructor
A new instance of Urn.
Constructor Details
#initialize(args) ⇒ Urn
Returns a new instance of 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
#kind ⇒ Object
Returns the value of attribute kind.
4 5 6 |
# File 'lib/masstransit/urn.rb', line 4 def kind @kind end |