Class: Seiso::ImportMaster::Mappers::ServiceMapper
- Inherits:
-
Object
- Object
- Seiso::ImportMaster::Mappers::ServiceMapper
- Defined in:
- lib/seiso/import_master/mappers/service_mapper.rb
Overview
- Author
-
Willie Wheeler
- Copyright
-
Copyright © 2014-2015 Expedia, Inc.
- License
-
Apache 2.0
Instance Method Summary collapse
Instance Method Details
#seiso_service(s) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/seiso/import_master/mappers/service_mapper.rb', line 12 def seiso_service(s) seiso_service = { 'key' => s['key'], 'name' => s['name'], 'description' => s['description'], 'platform' => s['platform'], 'scmRepository' => s['scmRepository'] } group = s['group'] seiso_service['group'] = { 'key' => group } unless group.nil? type = s['type'] seiso_service['type'] = { 'key' => type } unless type.nil? owner = s['owner'] seiso_service['owner'] = { 'username' => owner } unless owner.nil? seiso_service end |