Sha256: cc7a884c252714a76fa226b631174f328fa62a167b2d6156597d5adf34b053a4

Contents?: true

Size: 773 Bytes

Versions: 4

Compression:

Stored size: 773 Bytes

Contents

module Dimelo::CCP
  class Feedback < Dimelo::CCP::API::Model
    include ::Dimelo::CCP::API::Common::Openable
    include ::Dimelo::CCP::API::Common::Publishable
    include ::Dimelo::CCP::API::Common::Starrable

    attributes :id, :title, :body, :body_format, :flow_state, :score, :user_id,
               :category_id, :category_ids, :category_names, :status_id, :star, :starred_at,
               :closed, :attachments_count, :comments_count, :positive_votes_count, :negative_votes_count,
               :permalink, :ipaddr, :created_at, :updated_at

    submit_attributes :title, :body, :body_format, :category_ids, :user_id, :created_at

    belongs_to :user
    belongs_to :category
    has_many :feedback_comments
    alias :comments :feedback_comments

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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