Class: Furia::Group
- Inherits:
-
Struct
- Object
- Struct
- Furia::Group
- Defined in:
- lib/furia.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
Returns the value of attribute entries.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#total_duration_ms ⇒ Object
Returns the value of attribute total_duration_ms.
-
#total_queries_num ⇒ Object
Returns the value of attribute total_queries_num.
-
#uid ⇒ Object
Returns the value of attribute uid.
Class Method Summary collapse
Instance Attribute Details
#entries ⇒ Object
Returns the value of attribute entries
5 6 7 |
# File 'lib/furia.rb', line 5 def entries @entries end |
#scope ⇒ Object
Returns the value of attribute scope
5 6 7 |
# File 'lib/furia.rb', line 5 def scope @scope end |
#total_duration_ms ⇒ Object
Returns the value of attribute total_duration_ms
5 6 7 |
# File 'lib/furia.rb', line 5 def total_duration_ms @total_duration_ms end |
#total_queries_num ⇒ Object
Returns the value of attribute total_queries_num
5 6 7 |
# File 'lib/furia.rb', line 5 def total_queries_num @total_queries_num end |
#uid ⇒ Object
Returns the value of attribute uid
5 6 7 |
# File 'lib/furia.rb', line 5 def uid @uid end |
Class Method Details
.from_hash(hash) ⇒ Object
7 8 9 10 |
# File 'lib/furia.rb', line 7 def self.from_hash(hash) group_entries = hash[:entries].map { |entry| Furia.entry_from_hash(entry) } new(**hash.except(:entries).slice(*members).merge(entries: group_entries)) end |