class Metrojobb::Location

Attributes

city[RW]
postal_code[RW]
street[RW]

Public Instance Methods

to_xml(builder: Builder::XmlMarkup.new(indent: DEFAULT_INDENT)) click to toggle source
# File lib/metrojobb/location.rb, line 7
def to_xml(builder: Builder::XmlMarkup.new(indent: DEFAULT_INDENT))
  builder.location do |node|
    node.street { |n| n.cdata!(street.to_s) } if street.present?
    node.postalCode { |n| n.cdata!(postal_code.to_s) } if street.present?
    node.city { |n| n.cdata!(city.to_s) } if street.present?
  end
end