Class: Smplkit::Audit::Forwarder
- Inherits:
-
Struct
- Object
- Struct
- Smplkit::Audit::Forwarder
- Defined in:
- lib/smplkit/audit/models.rb
Overview
rubocop:disable Lint/StructNewOverride – “:filter“ matches the API attribute and shadowing Struct#filter is the expected ergonomics.
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#deleted_at ⇒ Object
Returns the value of attribute deleted_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#forwarder_type ⇒ Object
Returns the value of attribute forwarder_type.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#transform ⇒ Object
Returns the value of attribute transform.
-
#transform_type ⇒ Object
Returns the value of attribute transform_type.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def configuration @configuration end |
#created_at ⇒ Object
Returns the value of attribute created_at
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def created_at @created_at end |
#deleted_at ⇒ Object
Returns the value of attribute deleted_at
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def deleted_at @deleted_at end |
#description ⇒ Object
Returns the value of attribute description
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def description @description end |
#enabled ⇒ Object
Returns the value of attribute enabled
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def enabled @enabled end |
#filter ⇒ Object
Returns the value of attribute filter
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def filter @filter end |
#forwarder_type ⇒ Object
Returns the value of attribute forwarder_type
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def forwarder_type @forwarder_type end |
#id ⇒ Object
Returns the value of attribute id
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def id @id end |
#name ⇒ Object
Returns the value of attribute name
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def name @name end |
#transform ⇒ Object
Returns the value of attribute transform
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def transform @transform end |
#transform_type ⇒ Object
Returns the value of attribute transform_type
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def transform_type @transform_type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def updated_at @updated_at end |
#version ⇒ Object
Returns the value of attribute version
183 184 185 |
# File 'lib/smplkit/audit/models.rb', line 183 def version @version end |
Class Method Details
.from_resource(resource) ⇒ Object
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/smplkit/audit/models.rb', line 189 def self.from_resource(resource) a = resource.attributes new( id: resource.id, name: a.name, description: a.description, forwarder_type: a.forwarder_type, enabled: a.enabled.nil? || a.enabled, filter: a.filter.nil? ? nil : Smplkit::Helpers.deep_stringify_keys(a.filter), transform_type: a.transform_type, transform: a.transform, configuration: HttpConfiguration.from_wire(a.configuration), created_at: a.created_at, updated_at: a.updated_at, deleted_at: a.deleted_at, version: a.version ) end |