Class: Weimark::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/weimark/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#decisionObject (readonly)

Returns the value of attribute decision.



122
123
124
# File 'lib/weimark/client.rb', line 122

def decision
  @decision
end

#fullreportObject (readonly)

Returns the value of attribute fullreport.



122
123
124
# File 'lib/weimark/client.rb', line 122

def fullreport
  @fullreport
end

#nameObject (readonly)

Returns the value of attribute name.



122
123
124
# File 'lib/weimark/client.rb', line 122

def name
  @name
end

#scoreObject (readonly)

Returns the value of attribute score.



122
123
124
# File 'lib/weimark/client.rb', line 122

def score
  @score
end