Class: Shuttlecraft::Protocol
- Inherits:
-
Object
- Object
- Shuttlecraft::Protocol
- Defined in:
- lib/shuttlecraft/protocol.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#service_name ⇒ Object
readonly
Returns the value of attribute service_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(service_name = :Mothership, name = 'Mothership') ⇒ Protocol
constructor
A new instance of Protocol.
Constructor Details
#initialize(service_name = :Mothership, name = 'Mothership') ⇒ Protocol
Returns a new instance of Protocol.
5 6 7 8 |
# File 'lib/shuttlecraft/protocol.rb', line 5 def initialize(service_name=:Mothership, name='Mothership') @service_name = service_name @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/shuttlecraft/protocol.rb', line 3 def name @name end |
#service_name ⇒ Object (readonly)
Returns the value of attribute service_name.
3 4 5 |
# File 'lib/shuttlecraft/protocol.rb', line 3 def service_name @service_name end |
Class Method Details
.default ⇒ Object
10 11 12 13 |
# File 'lib/shuttlecraft/protocol.rb', line 10 def self.default @@default ||= Shuttlecraft::Protocol.new @@default end |