Class: SDM::LogCategoryConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(remote_discard_replays: nil, remote_encoder: nil) ⇒ LogCategoryConfig

Returns a new instance of LogCategoryConfig.



9632
9633
9634
9635
9636
9637
9638
# File 'lib/models/porcelain.rb', line 9632

def initialize(
  remote_discard_replays: nil,
  remote_encoder: nil
)
  @remote_discard_replays = remote_discard_replays == nil ? false : remote_discard_replays
  @remote_encoder = remote_encoder == nil ? "" : remote_encoder
end

Instance Attribute Details

#remote_discard_replaysObject

Indicates if the Organization should exclude replay data from remote logging for the log category.



9628
9629
9630
# File 'lib/models/porcelain.rb', line 9628

def remote_discard_replays
  @remote_discard_replays
end

#remote_encoderObject

The Organization's remote log encryption encoder, one of the LogRemoteEncoder constants.



9630
9631
9632
# File 'lib/models/porcelain.rb', line 9630

def remote_encoder
  @remote_encoder
end

Instance Method Details

#to_json(options = {}) ⇒ Object



9640
9641
9642
9643
9644
9645
9646
# File 'lib/models/porcelain.rb', line 9640

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end