Class: Garage::Meta::RemoteService::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/garage/meta/remote_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



40
41
42
# File 'lib/garage/meta/remote_service.rb', line 40

def initialize
  @services = []
end

Instance Attribute Details

#servicesObject (readonly)

Returns the value of attribute services.



38
39
40
# File 'lib/garage/meta/remote_service.rb', line 38

def services
  @services
end

Instance Method Details

#service(&block) ⇒ Object



44
45
46
47
48
# File 'lib/garage/meta/remote_service.rb', line 44

def service(&block)
  service = ServiceDSL.new
  service.instance_eval(&block)
  @services << service.build
end