Sha256: ea50d5e405466cbad41f9e08947a79bf8bf217207094eb4f97817463571058fc
Contents?: true
Size: 551 Bytes
Versions: 5
Compression:
Stored size: 551 Bytes
Contents
require 'restful_model' require 'file' module Inbox class Message < RestfulModel attr_accessor :subject attr_accessor :from attr_accessor :to attr_accessor :cc attr_accessor :bcc attr_accessor :date attr_accessor :thread_id attr_accessor :file_ids attr_accessor :body def inflate(json) super @file_ids ||= [] @to ||= [] @cc ||= [] @bcc ||= [] end def files @files ||= RestfulModelCollection.new(File, @_api, @namespace_id, {:message_id=>@id}) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
inbox-0.4.4 | lib/message.rb |
inbox-0.4.3 | lib/message.rb |
inbox-0.4.2 | lib/message.rb |
inbox-0.4.1 | lib/message.rb |
inbox-0.4.0 | lib/message.rb |