Class: Profile::Documents
- Inherits:
-
Object
- Object
- Profile::Documents
- Defined in:
- lib/profile.rb
Instance Method Summary collapse
-
#initialize(clientw) ⇒ Documents
constructor
A new instance of Documents.
- #list(options) ⇒ Object
Constructor Details
#initialize(clientw) ⇒ Documents
Returns a new instance of Documents.
83 84 85 |
# File 'lib/profile.rb', line 83 def initialize(clientw) @clientw = clientw end |
Instance Method Details
#list(options) ⇒ Object
87 88 89 90 91 92 93 94 95 |
# File 'lib/profile.rb', line 87 def list() query = { "source_id" => ['source_id'] } query = ReqUtils.add_if_not_blank(query, 'profile_id', ['profile_id']) query = ReqUtils.add_if_not_blank(query, 'profile_reference', ['profile_reference']) resp = @clientw.get("profile/documents", query) return resp["data"] end |