Class: Profile::Scoring

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

Instance Method Summary collapse

Constructor Details

#initialize(clientw) ⇒ Scoring

Returns a new instance of Scoring.



117
118
119
# File 'lib/profile.rb', line 117

def initialize(clientw)
    @clientw = clientw
end

Instance Method Details

#list(options) ⇒ Object



121
122
123
124
125
126
127
128
129
# File 'lib/profile.rb', line 121

def list(options)
   query = {
        "source_id" => options['source_id']
    }
    query = ReqUtils.add_if_not_blank(query, 'profile_id', options['profile_id'])
    query = ReqUtils.add_if_not_blank(query, 'profile_reference', options['profile_reference'])
    resp = @clientw.get("profile/scoring", query)
    return resp['data']
end