Class: ESP::StatCustomSignature
- Inherits:
-
Resource
show all
- Defined in:
- lib/esp/resources/stat_custom_signature.rb
'total' rollup methods
collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Dirty
#changed_attributes, #original_attributes, #original_attributes=
#load
Class Method Details
.create ⇒ void
This method returns an undefined value.
Not Implemented. You cannot create a Stat.
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 71
|
Find a StatRegion by id
call-seq -> super.find(id, options = {})
62
63
64
65
66
67
68
69
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 62
def self.find(*arguments)
scope = arguments.slice!(0)
options = (arguments.slice!(0) || {}).with_indifferent_access
return super(scope, options) if scope.is_a?(Numeric) || options[:from].present?
params = options.fetch(:params, {}).with_indifferent_access
stat_id = params.delete(:stat_id)
for_stat(stat_id)
end
|
Returns a paginated collection of custom_signature stats for the given stat_id Convenience method to use instead of find since a stat_id is required to return custom_signature stats.
33
34
35
36
37
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 33
def self.for_stat(stat_id = nil, options = {}) fail ArgumentError, "You must supply a stat id." unless stat_id.present?
from = "#{prefix}stats/#{stat_id}/custom_signatures.json"
find(:all, from: from, params: options)
end
|
.where ⇒ void
This method returns an undefined value.
Not Implemented. You cannot search for a StatSignature.
13
14
15
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 13
def self.where(*)
fail ESP::NotImplementedError
end
|
Instance Method Details
The custom_signature these stats are for.
8
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 8
belongs_to :custom_signature, class_name: 'ESP::CustomSignature'
|
#destroy ⇒ void
This method returns an undefined value.
Not Implemented. You cannot delete a Stat.
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 79
|
#save ⇒ void
This method returns an undefined value.
Not Implemented. You cannot create or update a Stat.
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 75
|
#total ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 85
|
#total_error ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 93
|
#total_fail ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 89
|
#total_info ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 95
|
#total_new_1d ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 149
|
#total_new_1d_error ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 113
|
#total_new_1d_fail ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 109
|
#total_new_1d_info ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 115
|
#total_new_1d_pass ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 107
|
#total_new_1d_warn ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 111
|
#total_new_1h ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 147
|
#total_new_1h_error ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 103
|
#total_new_1h_fail ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 99
|
#total_new_1h_info ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 105
|
#total_new_1h_pass ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 97
|
#total_new_1h_warn ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 101
|
#total_new_1w ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 151
|
#total_new_1w_error ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 121
|
#total_new_1w_fail ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 119
|
#total_new_1w_info ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 123
|
#total_new_1w_pass ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 117
|
#total_new_1w_warn ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 125
|
#total_old ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 153
|
#total_old_error ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 133
|
#total_old_fail ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 127
|
#total_old_info ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 135
|
#total_old_pass ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 129
|
#total_old_warn ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 131
|
#total_pass ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 87
|
#total_suppressed ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 137
|
#total_suppressed_error ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 145
|
#total_suppressed_fail ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 141
|
#total_suppressed_pass ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 139
|
#total_suppressed_warn ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 143
|
#total_warn ⇒ Object
|
# File 'lib/esp/resources/stat_custom_signature.rb', line 91
|