Class: Yoti::DynamicSharingService::TransactionalFlowExtension
- Inherits:
-
Object
- Object
- Yoti::DynamicSharingService::TransactionalFlowExtension
- Defined in:
- lib/yoti/dynamic_share_service/extension/transactional_flow_extension.rb
Overview
Extension for transactional flows
Constant Summary collapse
- EXTENSION_TYPE =
'TRANSACTIONAL_FLOW'
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
- #as_json(*_args) ⇒ Object
-
#initialize ⇒ TransactionalFlowExtension
constructor
A new instance of TransactionalFlowExtension.
- #to_json(*_args) ⇒ Object
Constructor Details
#initialize ⇒ TransactionalFlowExtension
Returns a new instance of TransactionalFlowExtension.
11 12 13 |
# File 'lib/yoti/dynamic_share_service/extension/transactional_flow_extension.rb', line 11 def initialize @type = EXTENSION_TYPE end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
8 9 10 |
# File 'lib/yoti/dynamic_share_service/extension/transactional_flow_extension.rb', line 8 def content @content end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/yoti/dynamic_share_service/extension/transactional_flow_extension.rb', line 9 def type @type end |
Class Method Details
.builder ⇒ Object
26 27 28 |
# File 'lib/yoti/dynamic_share_service/extension/transactional_flow_extension.rb', line 26 def self.builder TransactionalFlowExtensionBuilder.new end |
Instance Method Details
#as_json(*_args) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/yoti/dynamic_share_service/extension/transactional_flow_extension.rb', line 19 def as_json(*_args) { content: @content, type: @type } end |
#to_json(*_args) ⇒ Object
15 16 17 |
# File 'lib/yoti/dynamic_share_service/extension/transactional_flow_extension.rb', line 15 def to_json(*_args) as_json.to_json end |