Method: EYCli::Model::App.create_collection_path
- Defined in:
- lib/ey_cli/models/app.rb
.create_collection_path(hash) ⇒ Object
8 9 10 11 12 |
# File 'lib/ey_cli/models/app.rb', line 8 def self.create_collection_path(hash) account = hash.delete(:account) raise Faraday::Error::ClientError, {:body => MultiJson.encode({:errors => {:account => 'Not found'}})} unless account (account.class.base_path + '/%s/apps') % account.id end |