Class: CivicSIPSdk::UserDataItem

Inherits:
Object
  • Object
show all
Defined in:
lib/civic_sip_sdk/user_data_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label:, value:, is_valid:, is_owner:) ⇒ UserDataItem

Creates an instance of UserDataItem.

Parameters:

  • label (String)

    Descriptive value identifier.

  • value (String)

    Item value of requested user data.

  • is_valid (String)

    Indicates whether or not the data is still considered valid on the blockchain.

  • is_owner (String)

    Civic SIP service challenges the user during scope request approval to ensure the user is in control of the private key originally used in the issuance of the data attestation.



14
15
16
17
18
19
# File 'lib/civic_sip_sdk/user_data_item.rb', line 14

def initialize(label:, value:, is_valid:, is_owner:)
  @label = label
  @value = value
  @is_valid = is_valid
  @is_owner = is_owner
end

Instance Attribute Details

#is_ownerObject (readonly)

Returns the value of attribute is_owner.



5
6
7
# File 'lib/civic_sip_sdk/user_data_item.rb', line 5

def is_owner
  @is_owner
end

#is_validObject (readonly)

Returns the value of attribute is_valid.



5
6
7
# File 'lib/civic_sip_sdk/user_data_item.rb', line 5

def is_valid
  @is_valid
end

#labelObject (readonly)

Returns the value of attribute label.



5
6
7
# File 'lib/civic_sip_sdk/user_data_item.rb', line 5

def label
  @label
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/civic_sip_sdk/user_data_item.rb', line 5

def value
  @value
end