Class: Profile::Documents

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

Instance Method Summary collapse

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(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/documents", query)
    return resp["data"]
end