class Yoti::DynamicSharingService::WantedAnchor
A wanted anchor for a source based constraint
Attributes
sub_type[R]
@return [String]
value[R]
@return [String]
Public Class Methods
builder()
click to toggle source
# File lib/yoti/dynamic_share_service/policy/wanted_anchor.rb, line 30 def self.builder WantedAnchorBuilder.new end
new()
click to toggle source
# File lib/yoti/dynamic_share_service/policy/wanted_anchor.rb, line 13 def initialize @value = '' @sub_type = nil end
Public Instance Methods
as_json()
click to toggle source
# File lib/yoti/dynamic_share_service/policy/wanted_anchor.rb, line 22 def as_json obj = { name: @value } obj[:sub_type] = @sub_type if @sub_type obj end
to_json(*_args)
click to toggle source
# File lib/yoti/dynamic_share_service/policy/wanted_anchor.rb, line 18 def to_json(*_args) as_json.to_json end