Class: Reach::REST::Api::Authentix::AuthenticationTrialStatItemInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Reach::REST::Api::Authentix::AuthenticationTrialStatItemInstance
- Defined in:
- lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb
Instance Method Summary collapse
-
#apiVersion ⇒ String
The API version.
-
#appletId ⇒ String
The identifier of the applet.
-
#context ⇒ AuthenticationTrialStatItemContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#fetch(dest: :unset, trial_status: :unset, channel: :unset, configuration_id: :unset, authentication_id: :unset, country: :unset, sent_at: :unset, sent_after: :unset, sent_before: :unset) ⇒ AuthenticationTrialStatItemInstance
Fetch the AuthenticationTrialStatItemInstance.
-
#initialize(version, payload) ⇒ AuthenticationTrialStatItemInstance
constructor
Initialize the AuthenticationTrialStatItemInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#numSuccessfulTrials ⇒ String
The total number of successfull trials among the ones matching the specified criteria.
-
#numUnsuccessfulTrials ⇒ String
The total number of unsuccessfull trials among the ones matching the specified criteria.
-
#successRate ⇒ Float
The success rate of the trials matching the specified criteria.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#totalTrials ⇒ String
The total number of trials matching the specified criteria.
Constructor Details
#initialize(version, payload) ⇒ AuthenticationTrialStatItemInstance
Initialize the AuthenticationTrialStatItemInstance
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 159 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'appletId' => payload['appletId'], 'apiVersion' => payload['apiVersion'], 'totalTrials' => payload['totalTrials'] == nil ? payload['totalTrials'] : payload['totalTrials'].to_i, 'numSuccessfulTrials' => payload['numSuccessfulTrials'] == nil ? payload['numSuccessfulTrials'] : payload['numSuccessfulTrials'].to_i, 'numUnsuccessfulTrials' => payload['numUnsuccessfulTrials'] == nil ? payload['numUnsuccessfulTrials'] : payload['numUnsuccessfulTrials'].to_i, 'successRate' => payload['successRate'], } # Context @instance_context = nil @params = { } end |
Instance Method Details
#apiVersion ⇒ String
Returns The API version.
196 197 198 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 196 def apiVersion @properties['apiVersion'] end |
#appletId ⇒ String
Returns The identifier of the applet.
190 191 192 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 190 def appletId @properties['appletId'] end |
#context ⇒ AuthenticationTrialStatItemContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
181 182 183 184 185 186 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 181 def context unless @instance_context @instance_context = AuthenticationTrialStatItemContext.new(@version ) end @instance_context end |
#fetch(dest: :unset, trial_status: :unset, channel: :unset, configuration_id: :unset, authentication_id: :unset, country: :unset, sent_at: :unset, sent_after: :unset, sent_before: :unset) ⇒ AuthenticationTrialStatItemInstance
Fetch the AuthenticationTrialStatItemInstance
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 236 def fetch( dest: :unset, trial_status: :unset, channel: :unset, configuration_id: :unset, authentication_id: :unset, country: :unset, sent_at: :unset, sent_after: :unset, sent_before: :unset ) context.fetch( dest: dest, trial_status: trial_status, channel: channel, configuration_id: configuration_id, authentication_id: authentication_id, country: country, sent_at: sent_at, sent_after: sent_after, sent_before: sent_before, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
270 271 272 273 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 270 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Reach.Api.Authentix.AuthenticationTrialStatItemInstance #{values}>" end |
#numSuccessfulTrials ⇒ String
Returns The total number of successfull trials among the ones matching the specified criteria.
208 209 210 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 208 def numSuccessfulTrials @properties['numSuccessfulTrials'] end |
#numUnsuccessfulTrials ⇒ String
Returns The total number of unsuccessfull trials among the ones matching the specified criteria.
214 215 216 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 214 def numUnsuccessfulTrials @properties['numUnsuccessfulTrials'] end |
#successRate ⇒ Float
Returns The success rate of the trials matching the specified criteria.
220 221 222 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 220 def successRate @properties['successRate'] end |
#to_s ⇒ Object
Provide a user friendly representation
263 264 265 266 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 263 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Reach.Api.Authentix.AuthenticationTrialStatItemInstance #{values}>" end |
#totalTrials ⇒ String
Returns The total number of trials matching the specified criteria.
202 203 204 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 202 def totalTrials @properties['totalTrials'] end |