Class: Profile::Parsing

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

Instance Method Summary collapse

Constructor Details

#initialize(clientw) ⇒ Parsing

Returns a new instance of Parsing.



100
101
102
# File 'lib/profile.rb', line 100

def initialize(clientw)
    @clientw = clientw
end

Instance Method Details

#get(options) ⇒ Object



104
105
106
107
108
109
110
111
112
# File 'lib/profile.rb', line 104

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