Sha256: 6fea01452e920c9f79163135d6b488f2fe53d0ce46ac10f3b0cd99d467021ff9

Contents?: true

Size: 245 Bytes

Versions: 2

Compression:

Stored size: 245 Bytes

Contents

class Reply < Resource
  attributes :content, :star_count, :topic_id
  attribute :created_at, :type => Time
  attribute :author, :type => Person
  
  def path
    "/replies/#{id}"
  end
  
  def setup_associations
    belongs_to :topic
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-satisfaction-0.2.0 lib/satisfaction/reply.rb
ruby-satisfaction-0.1.0 lib/satisfaction/reply.rb