Class: GoApiClient::Parsers::Artifact
- Inherits:
-
Object
- Object
- GoApiClient::Parsers::Artifact
- Defined in:
- lib/go_api_client/parsers/artifact_parser.rb
Class Method Summary collapse
Class Method Details
.parse(uri, root) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/go_api_client/parsers/artifact_parser.rb', line 5 def parse(uri, root) GoApiClient::Domain::Artifact.new( { :base_uri => uri, :src => root.attributes['src'].value, :dest => root.attributes['dest'].value, :artifact_type => root.attributes['type'].value, }) end |