Sha256: 327cb661cfcbe56e83d5319248afe3b0bdd1faf95b3d8e42d312896ef22e4bb3

Contents?: true

Size: 365 Bytes

Versions: 12

Compression:

Stored size: 365 Bytes

Contents

module Spreedly

  class ReceiverClass
    include Fields

    field :receiver_type, :hostnames, :name, :company_name

    def initialize(xml_doc)
      initialize_fields(xml_doc)
    end

    def self.new_list_from(xml_doc)
      receivers = xml_doc.xpath('.//receivers/receiver')
      receivers.map do |each|
        self.new(each)
      end
    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spreedly-2.0.28 lib/spreedly/receiver_class.rb
spreedly-2.0.27 lib/spreedly/receiver_class.rb
spreedly-2.0.26 lib/spreedly/receiver_class.rb
spreedly-2.0.25 lib/spreedly/receiver_class.rb
spreedly-2.0.24 lib/spreedly/receiver_class.rb
spreedly-2.0.23 lib/spreedly/receiver_class.rb
spreedly-2.0.22 lib/spreedly/receiver_class.rb
spreedly-2.0.21 lib/spreedly/receiver_class.rb
spreedly-2.0.20 lib/spreedly/receiver_class.rb
spreedly-2.0.19 lib/spreedly/receiver_class.rb
spreedly-2.0.18 lib/spreedly/receiver_class.rb
spreedly-2.0.17 lib/spreedly/receiver_class.rb