Class: LockstepSdk::FeatureFlagsRequestModel

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

Overview

Request information for Feature Flags

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ FeatureFlagsRequestModel

Initialize the FeatureFlagsRequestModel using the provided prototype



25
26
27
# File 'lib/lockstep_sdk/models/feature_flags_request_model.rb', line 25

def initialize(params = {})
    @names = params.dig(:names)
end

Instance Attribute Details

#namesString



31
32
33
# File 'lib/lockstep_sdk/models/feature_flags_request_model.rb', line 31

def names
  @names
end

Instance Method Details

#as_json(options = {}) ⇒ object



35
36
37
38
39
# File 'lib/lockstep_sdk/models/feature_flags_request_model.rb', line 35

def as_json(options={})
    {
        'names' => @names,
    }
end

#to_json(*options) ⇒ String



43
44
45
# File 'lib/lockstep_sdk/models/feature_flags_request_model.rb', line 43

def to_json(*options)
    "[#{as_json(*options).to_json(*options)}]"
end