Sha256: 72da8fd3027fadba6a3d9d057d487fb0a06d31aafbc093b297c401db442cda1d

Contents?: true

Size: 251 Bytes

Versions: 3

Compression:

Stored size: 251 Bytes

Contents

class Gear < RestApi::Base
  schema do
    string :id, :gear_profile, :state
  end
  #custom_id :id

  belongs_to :application
  has_many :components, :class_name => 'rest_api/base/attribute_hash'

  def state
    (super || :unknown).to_sym
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openshift-origin-console-1.3.4 app/models/gear.rb
openshift-origin-console-1.3.3 app/models/gear.rb
openshift-origin-console-1.3.2 app/models/gear.rb