Class: Garage::Meta::RemoteService::ServiceDSL
- Inherits:
-
Object
- Object
- Garage::Meta::RemoteService::ServiceDSL
- Defined in:
- lib/garage/meta/remote_service.rb
Instance Method Summary collapse
- #alternate_endpoint(rel, url) ⇒ Object
- #build ⇒ Object
- #endpoint(arg) ⇒ Object
-
#initialize ⇒ ServiceDSL
constructor
A new instance of ServiceDSL.
- #name(arg) ⇒ Object
- #namespace(arg) ⇒ Object
Constructor Details
#initialize ⇒ ServiceDSL
Returns a new instance of ServiceDSL.
52 53 54 |
# File 'lib/garage/meta/remote_service.rb', line 52 def initialize @service = RemoteService.new end |
Instance Method Details
#alternate_endpoint(rel, url) ⇒ Object
68 69 70 |
# File 'lib/garage/meta/remote_service.rb', line 68 def alternate_endpoint(rel, url) @service.alternate_endpoints[rel] = url end |
#build ⇒ Object
72 73 74 |
# File 'lib/garage/meta/remote_service.rb', line 72 def build @service end |
#endpoint(arg) ⇒ Object
64 65 66 |
# File 'lib/garage/meta/remote_service.rb', line 64 def endpoint(arg) @service.endpoint = arg end |
#name(arg) ⇒ Object
60 61 62 |
# File 'lib/garage/meta/remote_service.rb', line 60 def name(arg) @service.name = arg end |
#namespace(arg) ⇒ Object
56 57 58 |
# File 'lib/garage/meta/remote_service.rb', line 56 def namespace(arg) @service.namespace = arg.to_s end |