Class: Reach::REST::Api::Authentix::AuthenticationTrialStatItemContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Reach::REST::Api::Authentix::AuthenticationTrialStatItemContext
- Defined in:
- lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb
Instance Method Summary collapse
-
#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) ⇒ AuthenticationTrialStatItemContext
constructor
Initialize the AuthenticationTrialStatItemContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ AuthenticationTrialStatItemContext
Initialize the AuthenticationTrialStatItemContext
48 49 50 51 52 53 54 55 56 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 48 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/authentix/v1/authenticationTrialStats" end |
Instance Method Details
#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
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 69 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 ) baseParams = { } params = Reach::Values.of(baseParams.merge({ 'dest' => dest, 'trialStatus' => trial_status, 'channel' => channel, 'configurationId' => configuration_id, 'authenticationId' => authentication_id, 'country' => country, 'sentAt' => Reach.serialize_iso8601_datetime(sent_at), 'sentAfter' => Reach.serialize_iso8601_datetime(sent_after), 'sentBefore' => Reach.serialize_iso8601_datetime(sent_before), })) payload = @version.fetch('GET', @uri, params: params) AuthenticationTrialStatItemInstance.new( @version, payload, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
114 115 116 117 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 114 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Reach.Api.Authentix.AuthenticationTrialStatItemContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
107 108 109 110 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 107 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Reach.Api.Authentix.AuthenticationTrialStatItemContext #{context}>" end |