Class: GfreshPoint::Domain::Balance

Inherits:
Object
  • Object
show all
Defined in:
lib/gfresh_point/domain/balance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_id:, user_id:, point:, balance:) ⇒ Balance

Returns a new instance of Balance.



7
8
9
10
11
12
# File 'lib/gfresh_point/domain/balance.rb', line 7

def initialize(app_id:, user_id:, point:, balance:)
  @app_id = app_id
  @user_id = user_id
  @point = point
  @balance = balance
end

Instance Attribute Details

#app_idObject

Returns the value of attribute app_id.



5
6
7
# File 'lib/gfresh_point/domain/balance.rb', line 5

def app_id
  @app_id
end

#balanceObject

Returns the value of attribute balance.



5
6
7
# File 'lib/gfresh_point/domain/balance.rb', line 5

def balance
  @balance
end

#pointObject

Returns the value of attribute point.



5
6
7
# File 'lib/gfresh_point/domain/balance.rb', line 5

def point
  @point
end

#user_idObject

Returns the value of attribute user_id.



5
6
7
# File 'lib/gfresh_point/domain/balance.rb', line 5

def user_id
  @user_id
end