Method: EYCli::Model::App.create_collection_path

Defined in:
lib/ey_cli/models/app.rb

.create_collection_path(hash) ⇒ Object

Raises:



8
9
10
11
12
# File 'lib/ey_cli/models/app.rb', line 8

def self.create_collection_path(hash)
   = hash.delete(:account)
  raise Faraday::Error::ClientError, {:body => MultiJson.encode({:errors => {:account => 'Not found'}})} unless 
  (.class.base_path + '/%s/apps') % .id
end