Class: LunchMoney::Objects::User

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

#serialize

Constructor Details

#initialize(user_id:, user_name:, user_email:, account_id:, budget_name:, primary_currency:, api_key_label: nil) ⇒ void

Parameters:

  • user_id (Integer)
  • user_name (String)
  • user_email (String)
  • account_id (Integer)
  • budget_name (String)
  • primary_currency (String)
  • api_key_label (String, nil) (defaults to: nil)


28
29
30
31
32
33
34
35
36
37
38
# File 'lib/lunchmoney/objects/user.rb', line 28

def initialize(user_id:, user_name:, user_email:, account_id:, budget_name:, primary_currency:,
  api_key_label: nil)
  super()
  @user_id = user_id
  @user_name = user_name
  @user_email = user_email
  @account_id = 
  @budget_name = budget_name
  @primary_currency = primary_currency
  @api_key_label = api_key_label
end

Instance Attribute Details

#account_idInteger

Returns:

  • (Integer)


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

def 
  @account_id
end

#api_key_labelString?

Returns:

  • (String, nil)


15
16
17
# File 'lib/lunchmoney/objects/user.rb', line 15

def api_key_label
  @api_key_label
end

#budget_nameString

Returns:

  • (String)


12
13
14
# File 'lib/lunchmoney/objects/user.rb', line 12

def budget_name
  @budget_name
end

#user_emailString

Returns:

  • (String)


12
13
14
# File 'lib/lunchmoney/objects/user.rb', line 12

def user_email
  @user_email
end

#user_idInteger

Returns:

  • (Integer)


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

def user_id
  @user_id
end

#user_nameString

Returns:

  • (String)


12
13
14
# File 'lib/lunchmoney/objects/user.rb', line 12

def user_name
  @user_name
end