Class: Ship::Service

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#authObject (readonly)

Returns the value of attribute auth.



3
4
5
# File 'lib/service.rb', line 3

def auth
  @auth
end

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/service.rb', line 3

def code
  @code
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/service.rb', line 3

def name
  @name
end