
module Spreedly

  class Model

    include Fields

    field :token
    field :created_at, :updated_at, type: :date_time

    def initialize(xml_doc)
      initialize_fields(xml_doc)
    end

  end

end


module Spreedly

  class Model

    include Fields

    field :token
    field :created_at, :updated_at, type: :date_time

    attr_reader :xml_doc

    def initialize(xml_doc)
      @xml_doc = xml_doc
      initialize_fields(xml_doc)
    end

  end

end

Add xml_doc accessor on base Model to expose access to the raw XML, because sometimes that's handy to see :)
Add xml_doc accessor on base Model to expose access to the raw XML, because sometimes that's handy to see :)
