Class: FeatureFlagMetadata
- Inherits:
-
Object
- Object
- FeatureFlagMetadata
- Defined in:
- lib/posthog/feature_flag.rb
Overview
Represents metadata about a feature flag
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ FeatureFlagMetadata
constructor
A new instance of FeatureFlagMetadata.
Constructor Details
#initialize(json) ⇒ FeatureFlagMetadata
Returns a new instance of FeatureFlagMetadata.
54 55 56 57 58 59 60 |
# File 'lib/posthog/feature_flag.rb', line 54 def initialize(json) json.transform_keys!(&:to_s) @id = json["id"] @version = json["version"] @payload = json["payload"] @description = json["description"] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
52 53 54 |
# File 'lib/posthog/feature_flag.rb', line 52 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
52 53 54 |
# File 'lib/posthog/feature_flag.rb', line 52 def id @id end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
52 53 54 |
# File 'lib/posthog/feature_flag.rb', line 52 def payload @payload end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
52 53 54 |
# File 'lib/posthog/feature_flag.rb', line 52 def version @version end |