class Quickeebooks::Online::Model::MetaData
Public Instance Methods
to_xml(options = {})
click to toggle source
# File lib/quickeebooks/online/model/meta_data.rb, line 11 def to_xml(options = {}) xml = %Q{<MetaData>} xml = "#{xml}<CreateTime>#{formatted_date(create_time)}</CreateTime>" xml = "#{xml}<LastUpdatedTime>#{formatted_date(last_updated_time)}</LastUpdatedTime></MetaData>" xml end
Private Instance Methods
formatted_date(datetime)
click to toggle source
# File lib/quickeebooks/online/model/meta_data.rb, line 20 def formatted_date(datetime) datetime.strftime('%Y-%m-%dT%H:%M:%S%z') end