Sha256: c8fd73ecfde69b9d662f118c3e621b69f3e9f0d91e4e07c3e2e0af9f24c1fe25

Contents?: true

Size: 550 Bytes

Versions: 9

Compression:

Stored size: 550 Bytes

Contents

module Ctws
  class MinAppVersion < ApplicationRecord
    validates_presence_of :codename, :description, :platform, :min_version, :store_uri
  
    def as_jsonapi(options={})
      {
        type: ActiveModel::Naming.param_key(self),
        id: self.id,
        attributes: {
          codename: self.codename, 
          description: self.description, 
          min_version: self.min_version, 
          platform: self.platform, 
          store_uri: self.store_uri,
          updated_at: self.updated_at
        }
      }
    end
  end
  
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ctws-0.1.13.alpha app/models/ctws/min_app_version.rb
ctws-0.1.12.alpha app/models/ctws/min_app_version.rb
ctws-0.1.11.alpha app/models/ctws/min_app_version.rb
ctws-0.1.10.alpha app/models/ctws/min_app_version.rb
ctws-0.1.9.alpha app/models/ctws/min_app_version.rb
ctws-0.1.8.alpha app/models/ctws/min_app_version.rb
ctws-0.1.7.alpha app/models/ctws/min_app_version.rb
ctws-0.1.6.alpha app/models/ctws/min_app_version.rb
ctws-0.1.5.alpha app/models/ctws/min_app_version.rb