Sha256: fd16c80625ee5a806263933e4dae2f4f1b53b7fb73339fa56d07505c16d363cf

Contents?: true

Size: 317 Bytes

Versions: 5

Compression:

Stored size: 317 Bytes

Contents

module Dimelo::CCP
  class Category < Dimelo::CCP::API::Model
    path 'category_groups/%{category_group_id}/categories/%{id}'

    attributes :id, :category_group_id, :name, :description, :questions_count, :permalink, :picture
    alias :to_s :name

    belongs_to :category_group
    has_many :questions

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dimelo_ccp_api-0.5.0 lib/dimelo/ccp/api/model/category.rb
dimelo_ccp_api-0.4.4 lib/dimelo/ccp/api/model/category.rb
dimelo_ccp_api-0.4.3 lib/dimelo/ccp/api/model/category.rb
dimelo_ccp_api-0.4.2 lib/dimelo/ccp/api/model/category.rb
dimelo_ccp_api-0.4.1 lib/dimelo/ccp/api/model/category.rb