Sha256: 3e51a523916a5b73617050507169c329488d512cbdab2f4356805eff09d48441

Contents?: true

Size: 491 Bytes

Versions: 23

Compression:

Stored size: 491 Bytes

Contents

module MeducationSDK
  class GroupDiscussionPost < Loquor::Resource
    self.path = "/group_discussion_posts"

    def user
      @user ||= User.find(user_id)
    end

    def discussion
      @discussion ||= GroupDiscussion.find(discussion_id)
    end
  end

  class GroupDiscussionPostMock < GroupDiscussionPost
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      user_id: 3,
      discussion_id: 8,
      parsed_content: "The content of my post"
    }
  end
end


Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
meducation_sdk-0.7.0 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-0.6.1 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-0.6.0 lib/meducation_sdk/resources/group_discussion_post.rb