Class: Rubillow::Models::RateSummary

Inherits:
Base
  • Object
show all
Defined in:
lib/rubillow/models/rate_summary.rb

Overview

Rate summary information

Instance Attribute Summary collapse

Attributes inherited from Base

#code, #message, #near_limit, #xml

Method Summary

Methods inherited from Base

#success?

Methods included from XmlParsingHelper

#xpath_if_present

Instance Attribute Details

#last_weekHash

Returns last week’s rates (:thirty_year_fixed, :fifteen_year_fixed, :five_one_arm).

Examples:

last_week[:thirty_year_fixed]

Returns:

  • (Hash)

    last week’s rates (:thirty_year_fixed, :fifteen_year_fixed, :five_one_arm).



17
18
19
# File 'lib/rubillow/models/rate_summary.rb', line 17

def last_week
  @last_week
end

#todayHash

Returns today’s rates (:thirty_year_fixed, :fifteen_year_fixed, :five_one_arm).

Examples:

today[:thirty_year_fixed]

Returns:

  • (Hash)

    today’s rates (:thirty_year_fixed, :fifteen_year_fixed, :five_one_arm).



10
11
12
# File 'lib/rubillow/models/rate_summary.rb', line 10

def today
  @today
end