Class: Yoti::DynamicSharingService::DynamicScenario
- Inherits:
-
Object
- Object
- Yoti::DynamicSharingService::DynamicScenario
- Defined in:
- lib/yoti/dynamic_share_service/dynamic_scenario.rb
Overview
Describes a dynamic share
Instance Attribute Summary collapse
-
#callback_endpoint ⇒ Object
readonly
Returns the value of attribute callback_endpoint.
-
#extensions ⇒ Object
readonly
Returns the value of attribute extensions.
-
#policy ⇒ Object
readonly
Returns the value of attribute policy.
Class Method Summary collapse
Instance Method Summary collapse
- #as_json(*_args) ⇒ Object
-
#initialize ⇒ DynamicScenario
constructor
A new instance of DynamicScenario.
- #to_json(*_args) ⇒ Object
Constructor Details
#initialize ⇒ DynamicScenario
Returns a new instance of DynamicScenario.
11 12 13 |
# File 'lib/yoti/dynamic_share_service/dynamic_scenario.rb', line 11 def initialize @extensions = [] end |
Instance Attribute Details
#callback_endpoint ⇒ Object (readonly)
Returns the value of attribute callback_endpoint.
9 10 11 |
# File 'lib/yoti/dynamic_share_service/dynamic_scenario.rb', line 9 def callback_endpoint @callback_endpoint end |
#extensions ⇒ Object (readonly)
Returns the value of attribute extensions.
8 9 10 |
# File 'lib/yoti/dynamic_share_service/dynamic_scenario.rb', line 8 def extensions @extensions end |
#policy ⇒ Object (readonly)
Returns the value of attribute policy.
7 8 9 |
# File 'lib/yoti/dynamic_share_service/dynamic_scenario.rb', line 7 def policy @policy end |
Class Method Details
.builder ⇒ Object
27 28 29 |
# File 'lib/yoti/dynamic_share_service/dynamic_scenario.rb', line 27 def self.builder DynamicScenarioBuilder.new end |
Instance Method Details
#as_json(*_args) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/yoti/dynamic_share_service/dynamic_scenario.rb', line 19 def as_json(*_args) { policy: @policy, extensions: @extensions, callback_endpoint: @callback_endpoint } end |
#to_json(*_args) ⇒ Object
15 16 17 |
# File 'lib/yoti/dynamic_share_service/dynamic_scenario.rb', line 15 def to_json(*_args) as_json.to_json end |