Sha256: 84947d195a7b630e1c1887db7df332231249e7fa408cd1a1eaf0e06910a4c3e7

Contents?: true

Size: 1.29 KB

Versions: 6

Compression:

Stored size: 1.29 KB

Contents

# Copyright (c) Microsoft Corporation
# All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License"); 
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
#
# THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR 
# CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING 
# WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE,
# FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. 

# See the Apache Version 2.0 License for specific language governing
# permissions and limitations under the License.

module Yammer
  module Resources
    class Message < Yammer::Resources::Base

      attr_accessor_deffered :direct_message, :privacy, :group_id, :created_at,
      :attachments, :liked_by, :chat_client_sequence, :client_url, :content_excerpt,
      :message_type, :url, :web_url, :network_id, :system_message, :client_type, 
      :sender_type, :sender_id, :thread_id, :conversation_id, :replied_to_id, :body, 
      :language, :notified_user_ids

      attr_reader :replied_to_id

      # Creates a new message
      # @!scope class
      def self.create(body, params={})
        api_handler.create_message(body, params)
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yam-2.5.0 lib/yammer/resources/message.rb
yam-2.4.1 lib/yammer/resources/message.rb
yam-2.4.0 lib/yammer/resources/message.rb
yam-2.3.0 lib/yammer/resources/message.rb
yam-2.2.0 lib/yammer/resources/message.rb
yam-2.1.2 lib/yammer/resources/message.rb