Class: GfreshPoint::Domain::Rule

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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_nameObject

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/gfresh_point/domain/rule.rb', line 4

def name
  @name
end

#pointObject

Returns the value of attribute point.



4
5
6
# File 'lib/gfresh_point/domain/rule.rb', line 4

def point
  @point
end