Sha256: d958e71d165afdb8db08a149d90ff1a0a0c34b7bef23c472b4c572646c006eb8
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
module Relish module Commands class Handle def initialize(string) @project_id, @publisher_id = *string.split('/').reverse end def resource_url result = "projects/#{@project_id}" result << "?publisher_id=#{@publisher_id}" if @publisher_id result end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
relish-0.7.1 | lib/relish/commands/handle.rb |
relish-0.7 | lib/relish/commands/handle.rb |