Sha256: 639df8e82c99d354076a96239256181cb4b809cfad32310628b0a768a80f81bc

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 Bytes

Contents

module MeducationSDK
  class Message < Loquor::Resource
    self.path = "/message_threads"

    def from
      @user ||= User.find(from_id)
    end

    def thread
      @thread ||= MessageThread.find(thread_id)
    end
  end

  class MessageMock < Message
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      thread_id: 20,
      from_id: 10,
      parsed_content: "Foobar123"
    }
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

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