Class: GfreshPoint::Repository::MemRepo
- Inherits:
-
Object
- Object
- GfreshPoint::Repository::MemRepo
- Defined in:
- lib/gfresh_point/repository/mem_repo.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ MemRepo
constructor
A new instance of MemRepo.
- #list_rules(app_id) ⇒ Object
Constructor Details
#initialize(data) ⇒ MemRepo
Returns a new instance of MemRepo.
7 8 9 |
# File 'lib/gfresh_point/repository/mem_repo.rb', line 7 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/gfresh_point/repository/mem_repo.rb', line 5 def data @data end |
Instance Method Details
#list_rules(app_id) ⇒ Object
11 12 13 |
# File 'lib/gfresh_point/repository/mem_repo.rb', line 11 def list_rules(app_id) data.select {|d| d.app_id == app_id} end |