Class: Profile::Revealing

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

Instance Method Summary collapse

Constructor Details

#initialize(clientw) ⇒ Revealing

Returns a new instance of Revealing.



202
203
204
# File 'lib/profile.rb', line 202

def initialize(clientw)
    @clientw = clientw
end

Instance Method Details

#get(options) ⇒ Object



206
207
208
209
210
211
212
213
214
215
216
# File 'lib/profile.rb', line 206

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