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