Class: CommandTower::Messaging::Endpoints::SafeView
- Inherits:
-
Data
- Object
- Data
- CommandTower::Messaging::Endpoints::SafeView
- Defined in:
- app/services/command_tower/messaging/endpoints/safe_view.rb
Instance Attribute Summary collapse
-
#channel_key ⇒ Object
readonly
Returns the value of attribute channel_key.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#credentials_configured ⇒ Object
readonly
Returns the value of attribute credentials_configured.
-
#encryption_key_version ⇒ Object
readonly
Returns the value of attribute encryption_key_version.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#last_successful_use_at ⇒ Object
readonly
Returns the value of attribute last_successful_use_at.
-
#lifecycle_state ⇒ Object
readonly
Returns the value of attribute lifecycle_state.
-
#masked_display_value ⇒ Object
readonly
Returns the value of attribute masked_display_value.
-
#owner_user_id ⇒ Object
readonly
Returns the value of attribute owner_user_id.
-
#revoked_at ⇒ Object
readonly
Returns the value of attribute revoked_at.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#verification_state ⇒ Object
readonly
Returns the value of attribute verification_state.
-
#verified_at ⇒ Object
readonly
Returns the value of attribute verified_at.
Class Method Summary collapse
Instance Attribute Details
#channel_key ⇒ Object (readonly)
Returns the value of attribute channel_key
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def channel_key @channel_key end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def created_at @created_at end |
#credentials_configured ⇒ Object (readonly)
Returns the value of attribute credentials_configured
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def credentials_configured @credentials_configured end |
#encryption_key_version ⇒ Object (readonly)
Returns the value of attribute encryption_key_version
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def encryption_key_version @encryption_key_version end |
#id ⇒ Object (readonly)
Returns the value of attribute id
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def id @id end |
#last_successful_use_at ⇒ Object (readonly)
Returns the value of attribute last_successful_use_at
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def last_successful_use_at @last_successful_use_at end |
#lifecycle_state ⇒ Object (readonly)
Returns the value of attribute lifecycle_state
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def lifecycle_state @lifecycle_state end |
#masked_display_value ⇒ Object (readonly)
Returns the value of attribute masked_display_value
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def masked_display_value @masked_display_value end |
#owner_user_id ⇒ Object (readonly)
Returns the value of attribute owner_user_id
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def owner_user_id @owner_user_id end |
#revoked_at ⇒ Object (readonly)
Returns the value of attribute revoked_at
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def revoked_at @revoked_at end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def updated_at @updated_at end |
#verification_state ⇒ Object (readonly)
Returns the value of attribute verification_state
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def verification_state @verification_state end |
#verified_at ⇒ Object (readonly)
Returns the value of attribute verified_at
6 7 8 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 6 def verified_at @verified_at end |
Class Method Details
.from_record(record) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'app/services/command_tower/messaging/endpoints/safe_view.rb', line 21 def self.from_record(record) new( id: record.id, owner_user_id: record.user_id, channel_key: record.channel_key, lifecycle_state: record.lifecycle_state, verification_state: record.verification_state, masked_display_value: record.masked_display_value, credentials_configured: credentials_configured?(record), encryption_key_version: record.encryption_key_version, verified_at: record.verified_at, revoked_at: record.revoked_at, last_successful_use_at: record.last_successful_use_at, created_at: record.created_at, updated_at: record.updated_at, ).freeze end |