Class: ApolloDeploySignalSdkRails::UpdateContactPropertyBody
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdkRails::UpdateContactPropertyBody
- Defined in:
- lib/apollo_deploy_signal_sdk_rails/types.rb
Overview
Schema type: UpdateContactPropertyBody
Instance Attribute Summary collapse
Class Method Summary collapse
-
.from_json(attributes) ⇒ UpdateContactPropertyBody
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(fallback_value: nil) ⇒ UpdateContactPropertyBody
constructor
A new instance of UpdateContactPropertyBody.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(fallback_value: nil) ⇒ UpdateContactPropertyBody
Returns a new instance of UpdateContactPropertyBody.
2499 2500 2501 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 2499 def initialize(fallback_value: nil) @fallback_value = fallback_value end |
Instance Attribute Details
#fallback_value ⇒ String?
2496 2497 2498 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 2496 def fallback_value @fallback_value end |
Class Method Details
.from_json(attributes) ⇒ UpdateContactPropertyBody
Create an instance from a parsed JSON hash.
2513 2514 2515 2516 2517 2518 2519 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 2513 def self.from_json(attributes) return nil unless attributes.is_a?(Hash) new( fallback_value: attributes.key?("fallbackValue") ? attributes["fallbackValue"] : attributes[:fallback_value], ) end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this object.
2504 2505 2506 2507 2508 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 2504 def to_h { fallback_value: @fallback_value, }.compact end |