Class: Garage::Meta::RemoteService::Config
- Inherits:
-
Object
- Object
- Garage::Meta::RemoteService::Config
- Defined in:
- lib/garage/meta/remote_service.rb
Instance Attribute Summary collapse
-
#services ⇒ Object
readonly
Returns the value of attribute services.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #service(&block) ⇒ Object
Constructor Details
#initialize ⇒ Config
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
#services ⇒ Object (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 |