Class: Reach::REST::Api::Authentix::ConfigurationItemContext::AuthenticationControlItemList
- Inherits:
-
ListResource
- Object
- ListResource
- Reach::REST::Api::Authentix::ConfigurationItemContext::AuthenticationControlItemList
- Defined in:
- lib/reach-ruby/rest/api/authentix/configuration_item/authentication_control_item.rb
Instance Method Summary collapse
-
#check(dest: :unset, code: :unset, authentication_id: :unset, payment_info: :unset) ⇒ AuthenticationControlItemInstance
Check the AuthenticationControlItemInstance.
-
#initialize(version, configuration_id: nil) ⇒ AuthenticationControlItemList
constructor
Initialize the AuthenticationControlItemList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, configuration_id: nil) ⇒ AuthenticationControlItemList
Initialize the AuthenticationControlItemList
28 29 30 31 32 33 34 |
# File 'lib/reach-ruby/rest/api/authentix/configuration_item/authentication_control_item.rb', line 28 def initialize(version, configuration_id: nil) super(version) # Path Solution @solution = { configuration_id: configuration_id } @uri = "/authentix/v1/configurations/#{@solution[:configuration_id]}/authentication-controls" end |
Instance Method Details
#check(dest: :unset, code: :unset, authentication_id: :unset, payment_info: :unset) ⇒ AuthenticationControlItemInstance
Check the AuthenticationControlItemInstance
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/reach-ruby/rest/api/authentix/configuration_item/authentication_control_item.rb', line 42 def check( dest: :unset, code: :unset, authentication_id: :unset, payment_info: :unset ) baseParams = { } data = Reach::Values.of(baseParams.merge({ 'dest' => dest, 'code' => code, 'authenticationId' => authentication_id, 'paymentInfo' => payment_info, })) payload = @version.check('POST', @uri, data: data) AuthenticationControlItemInstance.new( @version, payload, configuration_id: @solution[:configuration_id], ) end |
#to_s ⇒ Object
Provide a user friendly representation
72 73 74 |
# File 'lib/reach-ruby/rest/api/authentix/configuration_item/authentication_control_item.rb', line 72 def to_s '#<Reach.Api.Authentix.AuthenticationControlItemList>' end |