Class: Services::Service

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

Overview

service container

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Service

Returns a new instance of Service.



18
19
20
21
22
23
24
25
26
# File 'lib/services/service.rb', line 18

def initialize(name)
  @name = name
  @members = []
  @endpoint = Services::Endpoint.new name

  create_if_missing
  load_members
  load_endpoint
end

Instance Attribute Details

#endpointObject (readonly)

Returns the value of attribute endpoint.



16
17
18
# File 'lib/services/service.rb', line 16

def endpoint
  @endpoint
end

#membersObject (readonly)

Returns the value of attribute members.



15
16
17
# File 'lib/services/service.rb', line 15

def members
  @members
end

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/services/service.rb', line 14

def name
  @name
end