Sha256: 88bdcd68f7a290c44c577854255732e15ccacd4698b7e592221131c46a70048e

Contents?: true

Size: 332 Bytes

Versions: 9

Compression:

Stored size: 332 Bytes

Contents

module MeducationSDK
  class UserSentEmail < Resource
    self.path = "/user_sent_emails"

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

  class UserSentEmailMock < UserSentEmail
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      user_id: 8,
      email_code: "m_email_code"
    }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
meducation_sdk-2.2.2 lib/meducation_sdk/resources/user_sent_email.rb
meducation_sdk-2.2.1 lib/meducation_sdk/resources/user_sent_email.rb
meducation_sdk-2.2.0 lib/meducation_sdk/resources/user_sent_email.rb
meducation_sdk-2.1.4 lib/meducation_sdk/resources/user_sent_email.rb
meducation_sdk-2.1.3 lib/meducation_sdk/resources/user_sent_email.rb
meducation_sdk-2.1.2 lib/meducation_sdk/resources/user_sent_email.rb
meducation_sdk-2.1.1 lib/meducation_sdk/resources/user_sent_email.rb
meducation_sdk-2.1.0 lib/meducation_sdk/resources/user_sent_email.rb
meducation_sdk-2.0.5 lib/meducation_sdk/resources/user_sent_email.rb