Sha256: f9d2f46348739161b95d50df0fae47ab7cdd87a898fbe441d68298ded2c94e54

Contents?: true

Size: 415 Bytes

Versions: 778

Compression:

Stored size: 415 Bytes

Contents

require 'httparty'

class Caboose::BlockTypeSummary < ActiveRecord::Base
  self.table_name = "block_type_summaries"
        
  belongs_to :block_type_source
  attr_accessible :id,
    :block_type_source_id,
    :name,
    :description

  def source
    self.block_type_source
  end
  
  def parse_api_hash(h)    
    self.name        = h['name']
    self.description = h['description']                
  end
  
end

Version data entries

778 entries across 778 versions & 1 rubygems

Version Path
caboose-cms-0.9.190 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.189 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.188 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.187 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.186 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.185 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.184 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.183 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.182 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.181 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.180 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.179 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.178 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.177 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.176 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.175 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.174 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.173 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.172 app/models/caboose/block_type_summary.rb
caboose-cms-0.9.171 app/models/caboose/block_type_summary.rb