Class: WorkOS::FlagUpdatedContextPreviousAttribute
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::FlagUpdatedContextPreviousAttribute
- Defined in:
- lib/workos/feature_flags/flag_updated_context_previous_attribute.rb
Constant Summary collapse
- HASH_ATTRS =
{ data: :data }.freeze
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ FlagUpdatedContextPreviousAttribute
constructor
A new instance of FlagUpdatedContextPreviousAttribute.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ FlagUpdatedContextPreviousAttribute
Returns a new instance of FlagUpdatedContextPreviousAttribute.
13 14 15 16 |
# File 'lib/workos/feature_flags/flag_updated_context_previous_attribute.rb', line 13 def initialize(json) hash = self.class.normalize(json) @data = hash[:data] ? WorkOS::FlagUpdatedContextPreviousAttributeData.new(hash[:data]) : nil end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
11 12 13 |
# File 'lib/workos/feature_flags/flag_updated_context_previous_attribute.rb', line 11 def data @data end |