Class: LaunchDarkly::Impl::DataModelPreprocessing::PreprocessedDataBase

Inherits:
Object
  • Object
show all
Defined in:
lib/ldclient-rb/impl/model/preprocessed_data.rb

Overview

Base class for all of the preprocessed data classes we embed in our data model. Using this class ensures that none of its properties will be included in JSON representations. It also overrides

to say that it is always equal with another instance of the same class; equality tests on

this class are only ever done in test code, and we want the contents of these classes to be ignored in test code unless we are looking at specific attributes.

Since:

  • 5.5.0

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object

Since:

  • 5.5.0



61
62
63
# File 'lib/ldclient-rb/impl/model/preprocessed_data.rb', line 61

def ==(other)
  other.class == self.class
end

#as_jsonObject

Since:

  • 5.5.0



53
54
55
# File 'lib/ldclient-rb/impl/model/preprocessed_data.rb', line 53

def as_json(*)
  nil
end

#to_json(*a) ⇒ Object

Since:

  • 5.5.0



57
58
59
# File 'lib/ldclient-rb/impl/model/preprocessed_data.rb', line 57

def to_json(*a)
  "null"
end