class Quickbooks::Model::MetaData
Public Instance Methods
to_xml(options = {})
click to toggle source
# File lib/quickbooks/model/meta_data.rb, line 9 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/quickbooks/model/meta_data.rb, line 18 def formatted_date(datetime) datetime.strftime('%Y-%m-%dT%H:%M:%S%z') end