Sha256: 86ab66deae4c4c0193515c41e338bb41f20622f222eaeac2f2100d8dc9b15e5b

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

module MeducationSDK
  class GroupDiscussionPost < Loquor::Resource
    self.path = "/group_discussions_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

1 entries across 1 versions & 1 rubygems

Version Path
meducation_sdk-0.5.0 lib/meducation_sdk/resources/group_discussion_post.rb