Class: GfreshPoint::Domain::Balance
- Inherits:
-
Object
- Object
- GfreshPoint::Domain::Balance
- Defined in:
- lib/gfresh_point/domain/balance.rb
Instance Attribute Summary collapse
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#point ⇒ Object
Returns the value of attribute point.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(app_id:, user_id:, point:, balance:) ⇒ Balance
constructor
A new instance of Balance.
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_id ⇒ Object
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 |
#balance ⇒ Object
Returns the value of attribute balance.
5 6 7 |
# File 'lib/gfresh_point/domain/balance.rb', line 5 def balance @balance end |
#point ⇒ Object
Returns the value of attribute point.
5 6 7 |
# File 'lib/gfresh_point/domain/balance.rb', line 5 def point @point end |
#user_id ⇒ Object
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 |