Class: Michael::Models::Status
- Inherits:
-
Object
- Object
- Michael::Models::Status
- Defined in:
- lib/michael/models/status.rb
Instance Method Summary collapse
- #dot ⇒ Object
-
#initialize(status, pastel_params: {}) ⇒ Status
constructor
A new instance of Status.
- #state ⇒ Object
- #updated_at ⇒ Object
Constructor Details
#initialize(status, pastel_params: {}) ⇒ Status
Returns a new instance of Status.
8 9 10 11 |
# File 'lib/michael/models/status.rb', line 8 def initialize(status, pastel_params: {}) @status = status @pastel_params = pastel_params end |
Instance Method Details
#dot ⇒ Object
21 22 23 |
# File 'lib/michael/models/status.rb', line 21 def dot dot_status[state] end |
#state ⇒ Object
13 14 15 |
# File 'lib/michael/models/status.rb', line 13 def state status[:state].to_sym end |
#updated_at ⇒ Object
17 18 19 |
# File 'lib/michael/models/status.rb', line 17 def updated_at status[:updated_at] end |