Class: Ship::Service
- Inherits:
-
Object
- Object
- Ship::Service
- Defined in:
- lib/service.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, code, auth) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(name, code, auth) ⇒ Service
Returns a new instance of Service.
4 5 6 7 8 |
# File 'lib/service.rb', line 4 def initialize(name,code,auth) @name = name @code = code @auth = auth end |
Instance Attribute Details
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
3 4 5 |
# File 'lib/service.rb', line 3 def auth @auth end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/service.rb', line 3 def code @code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/service.rb', line 3 def name @name end |