Class: Profile::Revealing
- Inherits:
-
Object
- Object
- Profile::Revealing
- Defined in:
- lib/profile.rb
Instance Method Summary collapse
- #get(options) ⇒ Object
-
#initialize(clientw) ⇒ Revealing
constructor
A new instance of Revealing.
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() payload = { "source_id" => ['source_id'] } payload = ReqUtils.add_if_not_blank(payload, 'profile_id', ['profile_id']) payload = ReqUtils.add_if_not_blank(payload, 'profile_reference', ['profile_reference']) payload = ReqUtils.add_if_not_blank(payload, 'filter_id', ['filter_id']) payload = ReqUtils.add_if_not_blank(payload, 'filter_reference', ['filter_reference']) resp = @clientw.get("profile/revealing", payload) return resp['data'] end |