Class: Reach::REST::Api::Authentix::AuthenticationTrialStatItemPage

Inherits:
Page
  • Object
show all
Defined in:
lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb

Constant Summary

Constants inherited from Page

Page::META_KEYS

Instance Method Summary collapse

Methods inherited from Page

#each, #load_page, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response

Constructor Details

#initialize(baseUrl, version, response, solution) ⇒ AuthenticationTrialStatItemPage

Initialize the AuthenticationTrialStatItemPage

Parameters:

  • baseUrl (String)

    url without pagination info

  • version (Version)

    Version that contains the resource

  • response (Response)

    Response from the API

  • solution (Hash)

    Path solution for the resource



128
129
130
131
132
133
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 128

def initialize(baseUrl, version, response, solution)
    super(baseUrl, version, response)

    # Path Solution
    @solution = solution
end

Instance Method Details

#get_instance(payload) ⇒ AuthenticationTrialStatItemInstance

Build an instance of AuthenticationTrialStatItemInstance

Parameters:

  • payload (Hash)

    Payload response from the API

Returns:



139
140
141
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 139

def get_instance(payload)
    AuthenticationTrialStatItemInstance.new(@version, payload)
end

#to_sObject

Provide a user friendly representation



145
146
147
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb', line 145

def to_s
    '<Reach.Api.Authentix.AuthenticationTrialStatItemPage>'
end