Class: Bulletproof::Runtime::ModelLoadEvent
- Inherits:
-
Data
- Object
- Data
- Bulletproof::Runtime::ModelLoadEvent
- Defined in:
- lib/bulletproof/runtime/model_load_event.rb
Overview
1モデルのロード集計結果 record_count: リクエスト全体の累計ロード件数(find_each の複数バッチも合算) max_single_load: 1回のイベントで最大何件ロードされたか(find_each のバッチ上限に相当) batched: find_each / in_batches 経由のロードかどうか caller_location: アプリコードで最初にロードが発生した箇所("path:line:in 'method'" 形式)
Instance Attribute Summary collapse
-
#batched ⇒ Object
readonly
Returns the value of attribute batched.
-
#caller_location ⇒ Object
readonly
Returns the value of attribute caller_location.
-
#max_single_load ⇒ Object
readonly
Returns the value of attribute max_single_load.
-
#model_name ⇒ Object
readonly
Returns the value of attribute model_name.
-
#record_count ⇒ Object
readonly
Returns the value of attribute record_count.
Instance Attribute Details
#batched ⇒ Object (readonly)
Returns the value of attribute batched
10 11 12 |
# File 'lib/bulletproof/runtime/model_load_event.rb', line 10 def batched @batched end |
#caller_location ⇒ Object (readonly)
Returns the value of attribute caller_location
10 11 12 |
# File 'lib/bulletproof/runtime/model_load_event.rb', line 10 def caller_location @caller_location end |
#max_single_load ⇒ Object (readonly)
Returns the value of attribute max_single_load
10 11 12 |
# File 'lib/bulletproof/runtime/model_load_event.rb', line 10 def max_single_load @max_single_load end |
#model_name ⇒ Object (readonly)
Returns the value of attribute model_name
10 11 12 |
# File 'lib/bulletproof/runtime/model_load_event.rb', line 10 def model_name @model_name end |
#record_count ⇒ Object (readonly)
Returns the value of attribute record_count
10 11 12 |
# File 'lib/bulletproof/runtime/model_load_event.rb', line 10 def record_count @record_count end |