Class: Dommy::PerformanceEntry

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

Overview

‘PerformanceEntry` — common shape for User Timing marks/measures.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



130
131
132
# File 'lib/dommy/performance.rb', line 130

def detail
  @detail
end

#durationObject

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



130
131
132
# File 'lib/dommy/performance.rb', line 130

def duration
  @duration
end

#entry_typeObject

Returns the value of attribute entry_type

Returns:

  • (Object)

    the current value of entry_type



130
131
132
# File 'lib/dommy/performance.rb', line 130

def entry_type
  @entry_type
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



130
131
132
# File 'lib/dommy/performance.rb', line 130

def name
  @name
end

#start_timeObject

Returns the value of attribute start_time

Returns:

  • (Object)

    the current value of start_time



130
131
132
# File 'lib/dommy/performance.rb', line 130

def start_time
  @start_time
end

Instance Method Details

#__js_get__(key) ⇒ Object



131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/dommy/performance.rb', line 131

def __js_get__(key)
  case key
  when "name"
    name
  when "entryType"
    entry_type
  when "startTime"
    start_time
  when "duration"
    duration
  when "detail"
    detail
  end
end