Class: Actor::Address
- Inherits:
-
Struct
- Object
- Struct
- Actor::Address
- Defined in:
- lib/actor/address.rb,
lib/actor/address.rb
Constant Summary collapse
- NoneClass =
Class.new Address
- None =
NoneClass.new Stream::Null, 'no-stream'
Instance Attribute Summary collapse
-
#stream ⇒ Object
Returns the value of attribute stream.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Class Method Summary collapse
Instance Attribute Details
#stream ⇒ Object
Returns the value of attribute stream
2 3 4 |
# File 'lib/actor/address.rb', line 2 def stream @stream end |
#uuid ⇒ Object
Returns the value of attribute uuid
2 3 4 |
# File 'lib/actor/address.rb', line 2 def uuid @uuid end |
Class Method Details
.build(stream = nil) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/actor/address.rb', line 3 def self.build stream=nil stream ||= Stream.new uuid = SecureRandom.uuid instance = new stream, uuid instance end |