Class: Furia::Group

Inherits:
Struct
  • Object
show all
Defined in:
lib/furia.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#entriesObject

Returns the value of attribute entries

Returns:

  • (Object)

    the current value of entries



5
6
7
# File 'lib/furia.rb', line 5

def entries
  @entries
end

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



5
6
7
# File 'lib/furia.rb', line 5

def scope
  @scope
end

#total_duration_msObject

Returns the value of attribute total_duration_ms

Returns:

  • (Object)

    the current value of total_duration_ms



5
6
7
# File 'lib/furia.rb', line 5

def total_duration_ms
  @total_duration_ms
end

#total_queries_numObject

Returns the value of attribute total_queries_num

Returns:

  • (Object)

    the current value of total_queries_num



5
6
7
# File 'lib/furia.rb', line 5

def total_queries_num
  @total_queries_num
end

#uidObject

Returns the value of attribute uid

Returns:

  • (Object)

    the current value of 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