Class: GfreshPoint::Repository::MemRepo

Inherits:
Object
  • Object
show all
Defined in:
lib/gfresh_point/repository/mem_repo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

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