Sha256: 6a8c039cb80f3d081ce904547ea2a12efbdf901c3ab70bc8c955fe570aabf0ae
Contents?: true
Size: 758 Bytes
Versions: 8
Compression:
Stored size: 758 Bytes
Contents
class Ey::Core::Client::Application < Ey::Core::Model extend Ey::Core::Associations identity :id, type: :integer attribute :language attribute :name attribute :repository attribute :type has_one :account has_many :archives, key: :application_archives has_many :keypairs has_many :environment_variables def save! params = { "url" => self.collection.url, "account" => self.account_id, "application" => { "name" => self.name, "type" => self.type, "repository" => self.repository, }, } if new_record? merge_attributes(self.connection.create_application(params).body["application"]) else raise NotImplementedError # update end end end
Version data entries
8 entries across 8 versions & 2 rubygems