Class: Michael::Models::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/michael/models/status.rb

Instance Method Summary collapse

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

#dotObject



21
22
23
# File 'lib/michael/models/status.rb', line 21

def dot
  dot_status[state]
end

#stateObject



13
14
15
# File 'lib/michael/models/status.rb', line 13

def state
  status[:state].to_sym
end

#updated_atObject



17
18
19
# File 'lib/michael/models/status.rb', line 17

def updated_at
  status[:updated_at]
end