Sha256: d0335036c532c39a08b0bb9b5adf184407435a480c3ce55e6d1378af789156f9

Contents?: true

Size: 429 Bytes

Versions: 18

Compression:

Stored size: 429 Bytes

Contents

module Notifications
  class Client
    class ReceivedTextCollection
      attr_reader :links, :collection

      def initialize(response)
        @links = response["links"]
        @collection = collection_from(response["received_text_messages"])
      end

      def collection_from(received_texts)
        received_texts.map do |received_text|
          ReceivedText.new(received_text)
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
notifications-ruby-client-6.2.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-6.0.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-5.4.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-5.3.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-5.2.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-5.1.2 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-5.1.1 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-5.1.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-4.0.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-3.1.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-3.0.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-2.10.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-2.9.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-2.8.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-2.7.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-2.6.0 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-2.5.1 lib/notifications/client/received_text_collection.rb
notifications-ruby-client-2.5.0 lib/notifications/client/received_text_collection.rb