Sha256: 03462fe73a9312f020fa909605790d62058f7f20e82e150e2213158dfcb9beae

Contents?: true

Size: 483 Bytes

Versions: 37

Compression:

Stored size: 483 Bytes

Contents

module MeducationSDK
  class GroupDiscussionPost < 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

37 entries across 37 versions & 1 rubygems

Version Path
meducation_sdk-1.6.10 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.6.6 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.6.5 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.6.4 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.6.3 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.6.2 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.6.1 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.6.0 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.5.7 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.5.6 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.5.5 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.5.4 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.5.3 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.5.2 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.5.1 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.5.0 lib/meducation_sdk/resources/group_discussion_post.rb
meducation_sdk-1.4.4 lib/meducation_sdk/resources/group_discussion_post.rb