Class: Weimark::Report
- Inherits:
-
Object
- Object
- Weimark::Report
- Defined in:
- lib/weimark/client.rb
Instance Attribute Summary collapse
-
#decision ⇒ Object
readonly
Returns the value of attribute decision.
-
#fullreport ⇒ Object
readonly
Returns the value of attribute fullreport.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(report_attributes = {}) ⇒ Report
constructor
A new instance of Report.
Constructor Details
#initialize(report_attributes = {}) ⇒ Report
Returns a new instance of Report.
124 125 126 127 128 129 |
# File 'lib/weimark/client.rb', line 124 def initialize(report_attributes = {}) @decision = report_attributes.try(:[], 'decision') @fullreport = report_attributes.try(:[], 'fullreport') @score = report_attributes.try(:[], 'ficoscores').try(:[], 'applicants').try(:[], 'applicant').try(:[], 'score') @name = report_attributes.try(:[], 'ficoscores').try(:[], 'applicants').try(:[], 'applicant').try(:[], 'name') end |
Instance Attribute Details
#decision ⇒ Object (readonly)
Returns the value of attribute decision.
122 123 124 |
# File 'lib/weimark/client.rb', line 122 def decision @decision end |
#fullreport ⇒ Object (readonly)
Returns the value of attribute fullreport.
122 123 124 |
# File 'lib/weimark/client.rb', line 122 def fullreport @fullreport end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
122 123 124 |
# File 'lib/weimark/client.rb', line 122 def name @name end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
122 123 124 |
# File 'lib/weimark/client.rb', line 122 def score @score end |