class Rubillow::Models::Region

Region information.

Attributes

city[RW]

@return [String] city.

id[RW]

@return [String] region id.

latitude[RW]

@return [String] latitude.

longitude[RW]

@return [String] longitude.

neighborhood[RW]

@return [String] neighborhood.

state[RW]

@return [String] state.

zmmrateurl[RW]

@return [String] ZMM rate URL.

Protected Instance Methods

parse() click to toggle source

@private

Calls superclass method Rubillow::Models::Base#parse
# File lib/rubillow/models/region.rb, line 29
def parse
  super
  
  return if !success?
  
  @id = @parser.xpath('//id').first.text
  @state = @parser.xpath('//state').text
  @city = @parser.xpath('//city').text
  @neighborhood = @parser.xpath('//neighborhood').text
  @latitude = @parser.xpath('//latitude').text
  @longitude = @parser.xpath('//longitude').text
  @zmmrateurl = @parser.xpath('//zmmrateurl').text
end