Class: GfreshPoint::Domain::Rule
- Inherits:
-
Object
- Object
- GfreshPoint::Domain::Rule
- Defined in:
- lib/gfresh_point/domain/rule.rb
Instance Attribute Summary collapse
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#event_name ⇒ Object
Returns the value of attribute event_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#point ⇒ Object
Returns the value of attribute point.
Instance Method Summary collapse
-
#initialize(app_id:, event_name:, point:, name: nil) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(app_id:, event_name:, point:, name: nil) ⇒ Rule
Returns a new instance of Rule.
6 7 8 9 10 11 |
# File 'lib/gfresh_point/domain/rule.rb', line 6 def initialize(app_id:, event_name:, point:, name: nil) @app_id = app_id @name = name @event_name = event_name @point = point end |
Instance Attribute Details
#app_id ⇒ Object
Returns the value of attribute app_id.
4 5 6 |
# File 'lib/gfresh_point/domain/rule.rb', line 4 def app_id @app_id end |
#event_name ⇒ Object
Returns the value of attribute event_name.
4 5 6 |
# File 'lib/gfresh_point/domain/rule.rb', line 4 def event_name @event_name end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/gfresh_point/domain/rule.rb', line 4 def name @name end |
#point ⇒ Object
Returns the value of attribute point.
4 5 6 |
# File 'lib/gfresh_point/domain/rule.rb', line 4 def point @point end |