Class: GetStream::Generated::Models::PolicyTestRun
- Defined in:
- lib/getstream_ruby/generated/models/policy_test_run.rb
Instance Attribute Summary collapse
- #completed_at ⇒ DateTime
- #config_key ⇒ String
- #config_updated_at ⇒ DateTime
- #created_at ⇒ DateTime
- #error_message ⇒ String
- #id ⇒ String
- #metrics ⇒ PolicyTestRunMetrics
- #rows_completed ⇒ Integer
- #rows_total ⇒ Integer
- #set_id ⇒ String
- #started_at ⇒ DateTime
- #status ⇒ String
- #task_id ⇒ String
- #triggered_by ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PolicyTestRun
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ PolicyTestRun
Initialize with attributes
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 56 def initialize(attributes = {}) super(attributes) @config_key = attributes.fetch(:config_key) { attributes.fetch('config_key', nil) } @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) } @id = attributes.fetch(:id) { attributes.fetch('id', nil) } @rows_completed = attributes.fetch(:rows_completed) { attributes.fetch('rows_completed', nil) } @rows_total = attributes.fetch(:rows_total) { attributes.fetch('rows_total', nil) } @set_id = attributes.fetch(:set_id) { attributes.fetch('set_id', nil) } @status = attributes.fetch(:status) { attributes.fetch('status', nil) } @task_id = attributes.fetch(:task_id) { attributes.fetch('task_id', nil) } @triggered_by = attributes.fetch(:triggered_by) { attributes.fetch('triggered_by', nil) } @completed_at = attributes.fetch(:completed_at) { attributes.fetch('completed_at', nil) } @config_updated_at = attributes.fetch(:config_updated_at) { attributes.fetch('config_updated_at', nil) } @error_message = attributes.fetch(:error_message) { attributes.fetch('error_message', nil) } @started_at = attributes.fetch(:started_at) { attributes.fetch('started_at', nil) } @metrics = attributes.fetch(:metrics) { attributes.fetch('metrics', nil) } end |
Instance Attribute Details
#completed_at ⇒ DateTime
41 42 43 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 41 def completed_at @completed_at end |
#config_key ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 14 def config_key @config_key end |
#config_updated_at ⇒ DateTime
44 45 46 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 44 def config_updated_at @config_updated_at end |
#created_at ⇒ DateTime
17 18 19 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 17 def created_at @created_at end |
#error_message ⇒ String
47 48 49 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 47 def @error_message end |
#id ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 20 def id @id end |
#metrics ⇒ PolicyTestRunMetrics
53 54 55 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 53 def metrics @metrics end |
#rows_completed ⇒ Integer
23 24 25 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 23 def rows_completed @rows_completed end |
#rows_total ⇒ Integer
26 27 28 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 26 def rows_total @rows_total end |
#set_id ⇒ String
29 30 31 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 29 def set_id @set_id end |
#started_at ⇒ DateTime
50 51 52 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 50 def started_at @started_at end |
#status ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 32 def status @status end |
#task_id ⇒ String
35 36 37 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 35 def task_id @task_id end |
#triggered_by ⇒ String
38 39 40 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 38 def triggered_by @triggered_by end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/getstream_ruby/generated/models/policy_test_run.rb', line 75 def self.json_field_mappings { config_key: 'config_key', created_at: 'created_at', id: 'id', rows_completed: 'rows_completed', rows_total: 'rows_total', set_id: 'set_id', status: 'status', task_id: 'task_id', triggered_by: 'triggered_by', completed_at: 'completed_at', config_updated_at: 'config_updated_at', error_message: 'error_message', started_at: 'started_at', metrics: 'metrics' } end |