Class: Workarea::Admin::OrderTimelineViewModel::Entry
- Inherits:
-
Object
- Object
- Workarea::Admin::OrderTimelineViewModel::Entry
- Defined in:
- app/view_models/workarea/admin/order_timeline_view_model.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#modifier ⇒ Object
readonly
Returns the value of attribute modifier.
-
#occured_at ⇒ Object
readonly
Returns the value of attribute occured_at.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(slug, occured_at, modifier, model) ⇒ Entry
constructor
A new instance of Entry.
- #modifier_id ⇒ Object
Constructor Details
#initialize(slug, occured_at, modifier, model) ⇒ Entry
Returns a new instance of Entry.
7 8 9 10 11 12 |
# File 'app/view_models/workarea/admin/order_timeline_view_model.rb', line 7 def initialize(slug, occured_at, modifier, model) @slug = slug @occured_at = occured_at @modifier = modifier @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
5 6 7 |
# File 'app/view_models/workarea/admin/order_timeline_view_model.rb', line 5 def model @model end |
#modifier ⇒ Object (readonly)
Returns the value of attribute modifier.
5 6 7 |
# File 'app/view_models/workarea/admin/order_timeline_view_model.rb', line 5 def modifier @modifier end |
#occured_at ⇒ Object (readonly)
Returns the value of attribute occured_at.
5 6 7 |
# File 'app/view_models/workarea/admin/order_timeline_view_model.rb', line 5 def occured_at @occured_at end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
5 6 7 |
# File 'app/view_models/workarea/admin/order_timeline_view_model.rb', line 5 def slug @slug end |
Instance Method Details
#modifier_id ⇒ Object
14 15 16 |
# File 'app/view_models/workarea/admin/order_timeline_view_model.rb', line 14 def modifier_id modifier.try(:id) end |