Module: ODDB::FeedbackObserver

Included in:
Analysis::Position, Migel::Product, Package
Defined in:
src/model/feedback_observer.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) feedbacks (readonly)

Returns the value of attribute feedbacks



6
7
8
# File 'src/model/feedback_observer.rb', line 6

def feedbacks
  @feedbacks
end

Instance Method Details

- (Object) add_feedback(feedback)



10
11
12
13
14
15
16
# File 'src/model/feedback_observer.rb', line 10

def add_feedback()
  unless(@feedbacks.include?())
    @feedbacks.unshift 
    @feedbacks.odba_isolated_store
  end
  
end

- (Object) feedback(id)



7
8
9
# File 'src/model/feedback_observer.rb', line 7

def (id)
  @feedbacks.find { |fb| fb.oid == id.to_i }
end

- (Object) remove_feedback(feedback)



17
18
19
20
21
22
# File 'src/model/feedback_observer.rb', line 17

def remove_feedback()
  if(@feedbacks.delete())
    @feedbacks.odba_isolated_store
  end
  
end