Class: IubendaApi::ConsentSolution::Subject
- Inherits:
-
ApiStruct::Entity
- Object
- ApiStruct::Entity
- IubendaApi::ConsentSolution::Subject
- Defined in:
- lib/iubenda_api/consent_solution/subject.rb
Overview
Response serializer class for client service IubendaApi::ConsentSolution::Clients::Subject
Instance Attribute Summary collapse
-
#email ⇒ String
readonly
Email of the subject.
-
#first_name ⇒ String
readonly
First name of the subject.
-
#full_name ⇒ String
readonly
Full name of the subject.
-
#id ⇒ String
readonly
ID of the subject.
-
#last_name ⇒ String
readonly
Last name of the subject.
-
#owner_id ⇒ String
readonly
Owner id of the subject.
-
#preferences ⇒ Hash
readonly
Set of key-value pairs with user preferences for the consent action.
-
#timestamp ⇒ String
readonly
ISO 8601 timestamp.
-
#verified ⇒ Boolean
readonly
Reserved field used to signal whether a subject is verified, for instance via the double opt-in method.
Class Method Summary collapse
-
.create(options) ⇒ IubendaApi::ConsentSolution::Subject, ApiStruct::Errors::Entity
Creates a subject.
-
.list(options = {}) ⇒ Array<IubendaApi::ConsentSolution::Subject>, ApiStruct::Errors::Entity
Gets list of subjects.
-
.show(id) ⇒ IubendaApi::ConsentSolution::Subject, ApiStruct::Errors::Entity
Gets a subject.
-
.update(id, options) ⇒ IubendaApi::ConsentSolution::Subject, ApiStruct::Errors::Entity
Updates a subject.
Instance Attribute Details
#email ⇒ String (readonly)
Returns Email of the subject.
83 |
# File 'lib/iubenda_api/consent_solution/subject.rb', line 83 attr_entity :id, :owner_id, :email, :first_name, :last_name, :full_name, :verified, :preferences, :timestamp |
#first_name ⇒ String (readonly)
Returns First name of the subject.
83 |
# File 'lib/iubenda_api/consent_solution/subject.rb', line 83 attr_entity :id, :owner_id, :email, :first_name, :last_name, :full_name, :verified, :preferences, :timestamp |
#full_name ⇒ String (readonly)
Returns Full name of the subject.
83 |
# File 'lib/iubenda_api/consent_solution/subject.rb', line 83 attr_entity :id, :owner_id, :email, :first_name, :last_name, :full_name, :verified, :preferences, :timestamp |
#id ⇒ String (readonly)
Returns ID of the subject.
83 |
# File 'lib/iubenda_api/consent_solution/subject.rb', line 83 attr_entity :id, :owner_id, :email, :first_name, :last_name, :full_name, :verified, :preferences, :timestamp |
#last_name ⇒ String (readonly)
Returns Last name of the subject.
83 |
# File 'lib/iubenda_api/consent_solution/subject.rb', line 83 attr_entity :id, :owner_id, :email, :first_name, :last_name, :full_name, :verified, :preferences, :timestamp |
#owner_id ⇒ String (readonly)
Returns owner id of the subject.
83 |
# File 'lib/iubenda_api/consent_solution/subject.rb', line 83 attr_entity :id, :owner_id, :email, :first_name, :last_name, :full_name, :verified, :preferences, :timestamp |
#preferences ⇒ Hash (readonly)
Returns Set of key-value pairs with user preferences for the consent action.
83 |
# File 'lib/iubenda_api/consent_solution/subject.rb', line 83 attr_entity :id, :owner_id, :email, :first_name, :last_name, :full_name, :verified, :preferences, :timestamp |
#timestamp ⇒ String (readonly)
Returns ISO 8601 timestamp. Operation time, for instance creation time, update time.
83 |
# File 'lib/iubenda_api/consent_solution/subject.rb', line 83 attr_entity :id, :owner_id, :email, :first_name, :last_name, :full_name, :verified, :preferences, :timestamp |
#verified ⇒ Boolean (readonly)
Returns Reserved field used to signal whether a subject is verified, for instance via the double opt-in method.
83 |
# File 'lib/iubenda_api/consent_solution/subject.rb', line 83 attr_entity :id, :owner_id, :email, :first_name, :last_name, :full_name, :verified, :preferences, :timestamp |
Class Method Details
.create(options) ⇒ IubendaApi::ConsentSolution::Subject, ApiStruct::Errors::Entity
Creates a subject
|
# File 'lib/iubenda_api/consent_solution/subject.rb', line 33
|
.list ⇒ Array<IubendaApi::ConsentSolution::Subject>, ApiStruct::Errors::Entity .list(options) ⇒ Array<IubendaApi::ConsentSolution::Subject>, ApiStruct::Errors::Entity
Gets list of subjects
|
# File 'lib/iubenda_api/consent_solution/subject.rb', line 20
|
.show(id) ⇒ IubendaApi::ConsentSolution::Subject, ApiStruct::Errors::Entity
Gets a subject
|
# File 'lib/iubenda_api/consent_solution/subject.rb', line 8
|
.update(id, options) ⇒ IubendaApi::ConsentSolution::Subject, ApiStruct::Errors::Entity
Updates a subject
54 |
# File 'lib/iubenda_api/consent_solution/subject.rb', line 54 client_service IubendaApi::ConsentSolution::Clients::Subject |