Class: RchilliRuby::Client

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

Overview

Client class to set headers for rchilli

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_key, version, sub_user_id) ⇒ Client

Returns a new instance of Client.



15
16
17
18
19
# File 'lib/rchilli_ruby.rb', line 15

def initialize(user_key, version, sub_user_id)
  @user_key = user_key
  @version = version
  @sub_user_id = sub_user_id
end

Instance Attribute Details

#sub_user_idObject

Returns the value of attribute sub_user_id.



13
14
15
# File 'lib/rchilli_ruby.rb', line 13

def sub_user_id
  @sub_user_id
end

#user_keyObject

Returns the value of attribute user_key.



13
14
15
# File 'lib/rchilli_ruby.rb', line 13

def user_key
  @user_key
end

#versionObject

Returns the value of attribute version.



13
14
15
# File 'lib/rchilli_ruby.rb', line 13

def version
  @version
end

Instance Method Details

#parse_jdObject



26
27
28
# File 'lib/rchilli_ruby.rb', line 26

def parse_jd
  #TODO: Need to develop in future
end

#parse_resume(file_name, base_64_data) ⇒ Object



21
22
23
24
# File 'lib/rchilli_ruby.rb', line 21

def parse_resume(file_name, base_64_data)
  parser = RchilliRuby::ResumeParser.new(user_key, version, sub_user_id)
  parser.parse(file_name, base_64_data)
end