Class: OrderPresenter
- Inherits:
-
Object
- Object
- OrderPresenter
- Defined in:
- app/models/submission/order_presenter.rb
Overview
rubocop:todo Style/Documentation
Instance Attribute Summary collapse
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#lanes_of_sequencing_required ⇒ Object
Returns the value of attribute lanes_of_sequencing_required.
-
#plate_purpose_id ⇒ Object
Returns the value of attribute plate_purpose_id.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#sample_names_text ⇒ Object
Returns the value of attribute sample_names_text.
-
#study_id ⇒ Object
Returns the value of attribute study_id.
Instance Method Summary collapse
-
#id ⇒ Object
id needs to be defined to stop Object#id being called on the OrderPresenter instance.
-
#initialize(order) ⇒ OrderPresenter
constructor
A new instance of OrderPresenter.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(order) ⇒ OrderPresenter
Returns a new instance of OrderPresenter.
4 5 6 |
# File 'app/models/submission/order_presenter.rb', line 4 def initialize(order) @target_order = order end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
14 15 16 |
# File 'app/models/submission/order_presenter.rb', line 14 def method_missing(method, *args, &block) @target_order.send(method, *args, &block) end |
Instance Attribute Details
#comments ⇒ Object
Returns the value of attribute comments
2 3 4 |
# File 'app/models/submission/order_presenter.rb', line 2 def comments @comments end |
#lanes_of_sequencing_required ⇒ Object
Returns the value of attribute lanes_of_sequencing_required
2 3 4 |
# File 'app/models/submission/order_presenter.rb', line 2 def lanes_of_sequencing_required @lanes_of_sequencing_required end |
#plate_purpose_id ⇒ Object
Returns the value of attribute plate_purpose_id
2 3 4 |
# File 'app/models/submission/order_presenter.rb', line 2 def plate_purpose_id @plate_purpose_id end |
#project_name ⇒ Object
Returns the value of attribute project_name
2 3 4 |
# File 'app/models/submission/order_presenter.rb', line 2 def project_name @project_name end |
#sample_names_text ⇒ Object
Returns the value of attribute sample_names_text
2 3 4 |
# File 'app/models/submission/order_presenter.rb', line 2 def sample_names_text @sample_names_text end |
#study_id ⇒ Object
Returns the value of attribute study_id
2 3 4 |
# File 'app/models/submission/order_presenter.rb', line 2 def study_id @study_id end |
Instance Method Details
#id ⇒ Object
id needs to be defined to stop Object#id being called on the OrderPresenter instance.
10 11 12 |
# File 'app/models/submission/order_presenter.rb', line 10 def id @target_order.id end |