Class: Yoti::DynamicSharingService::DynamicPolicy
- Inherits:
-
Object
- Object
- Yoti::DynamicSharingService::DynamicPolicy
- Defined in:
- lib/yoti/dynamic_share_service/policy/dynamic_policy.rb
Overview
Describes a policy for a dynamic share
Constant Summary collapse
- SELFIE_AUTH_TYPE =
1- PIN_AUTH_TYPE =
2
Instance Attribute Summary collapse
-
#wanted ⇒ Object
readonly
Returns the value of attribute wanted.
-
#wanted_auth_types ⇒ Object
readonly
Returns the value of attribute wanted_auth_types.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#wanted ⇒ Object (readonly)
Returns the value of attribute wanted.
11 12 13 |
# File 'lib/yoti/dynamic_share_service/policy/dynamic_policy.rb', line 11 def wanted @wanted end |
#wanted_auth_types ⇒ Object (readonly)
Returns the value of attribute wanted_auth_types.
10 11 12 |
# File 'lib/yoti/dynamic_share_service/policy/dynamic_policy.rb', line 10 def wanted_auth_types @wanted_auth_types end |
Class Method Details
.builder ⇒ Object
30 31 32 |
# File 'lib/yoti/dynamic_share_service/policy/dynamic_policy.rb', line 30 def self.builder DynamicPolicyBuilder.new end |
Instance Method Details
#as_json(*_args) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/yoti/dynamic_share_service/policy/dynamic_policy.rb', line 23 def as_json(*_args) { wanted_auth_types: @wanted_auth_types, wanted: @wanted } end |
#to_json(*_args) ⇒ Object
19 20 21 |
# File 'lib/yoti/dynamic_share_service/policy/dynamic_policy.rb', line 19 def to_json(*_args) as_json.to_json end |
#wanted_remember_me ⇒ Object
13 14 15 16 17 |
# File 'lib/yoti/dynamic_share_service/policy/dynamic_policy.rb', line 13 def wanted_remember_me return true if @wanted_remember_me false end |