Class: Llv::GroupStore::Group
- Inherits:
-
Struct
- Object
- Struct
- Llv::GroupStore::Group
- Defined in:
- lib/llv/group_store.rb
Instance Attribute Summary collapse
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#finished_at ⇒ Object
Returns the value of attribute finished_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#started_at ⇒ Object
Returns the value of attribute started_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#duration_ms ⇒ Object
Returns the value of attribute duration_ms
12 13 14 |
# File 'lib/llv/group_store.rb', line 12 def duration_ms @duration_ms end |
#finished_at ⇒ Object
Returns the value of attribute finished_at
12 13 14 |
# File 'lib/llv/group_store.rb', line 12 def finished_at @finished_at end |
#id ⇒ Object
Returns the value of attribute id
12 13 14 |
# File 'lib/llv/group_store.rb', line 12 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind
12 13 14 |
# File 'lib/llv/group_store.rb', line 12 def kind @kind end |
#lines ⇒ Object
Returns the value of attribute lines
12 13 14 |
# File 'lib/llv/group_store.rb', line 12 def lines @lines end |
#started_at ⇒ Object
Returns the value of attribute started_at
12 13 14 |
# File 'lib/llv/group_store.rb', line 12 def started_at @started_at end |
#status ⇒ Object
Returns the value of attribute status
12 13 14 |
# File 'lib/llv/group_store.rb', line 12 def status @status end |
#title ⇒ Object
Returns the value of attribute title
12 13 14 |
# File 'lib/llv/group_store.rb', line 12 def title @title end |
Instance Method Details
#summary ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/llv/group_store.rb', line 16 def summary { id: id, kind: kind, title: title, started_at: started_at, finished_at: finished_at, status: status, duration_ms: duration_ms, line_count: lines.length } end |
#to_h_full ⇒ Object
29 30 31 |
# File 'lib/llv/group_store.rb', line 29 def to_h_full summary.merge(lines: lines.map(&:dup)) end |