Class: ConcurConnect::User

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#country_codeObject

Returns the value of attribute country_code.



5
6
7
# File 'lib/concur_connect/user.rb', line 5

def country_code
  @country_code
end

#country_sub_codeObject

Returns the value of attribute country_sub_code.



5
6
7
# File 'lib/concur_connect/user.rb', line 5

def country_sub_code
  @country_sub_code
end

#currency_codeObject

Returns the value of attribute currency_code.



5
6
7
# File 'lib/concur_connect/user.rb', line 5

def currency_code
  @currency_code
end

#emailObject

Returns the value of attribute email.



5
6
7
# File 'lib/concur_connect/user.rb', line 5

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



5
6
7
# File 'lib/concur_connect/user.rb', line 5

def first_name
  @first_name
end

#last_nameObject

Returns the value of attribute last_name.



5
6
7
# File 'lib/concur_connect/user.rb', line 5

def last_name
  @last_name
end

#login_idObject

Returns the value of attribute login_id.



5
6
7
# File 'lib/concur_connect/user.rb', line 5

def 
  @login_id
end

#sessionObject

Returns the value of attribute session.



5
6
7
# File 'lib/concur_connect/user.rb', line 5

def session
  @session
end

Instance Method Details

#expense_report_finderObject



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

def expense_report_finder
  @expense_report_finder ||= ExpenseReportFinder.new session
end

#expense_reports(status = 'APPROVED', date = nil) ⇒ Object



9
10
11
# File 'lib/concur_connect/user.rb', line 9

def expense_reports(status = 'APPROVED', date = nil)
  @expense_reports ||= expense_report_finder.find(, status, date)
end