Class: ApolloDeploySignalSdkRails::ActivityMetadataResponse
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdkRails::ActivityMetadataResponse
- Defined in:
- lib/apollo_deploy_signal_sdk_rails/types.rb
Overview
Schema type: ActivityMetadataResponse
Instance Attribute Summary collapse
Class Method Summary collapse
-
.from_json(attributes) ⇒ ActivityMetadataResponse
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(topic_id: nil) ⇒ ActivityMetadataResponse
constructor
A new instance of ActivityMetadataResponse.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(topic_id: nil) ⇒ ActivityMetadataResponse
Returns a new instance of ActivityMetadataResponse.
2953 2954 2955 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 2953 def initialize(topic_id: nil) @topic_id = topic_id end |
Instance Attribute Details
#topic_id ⇒ String?
2950 2951 2952 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 2950 def topic_id @topic_id end |
Class Method Details
.from_json(attributes) ⇒ ActivityMetadataResponse
Create an instance from a parsed JSON hash.
2967 2968 2969 2970 2971 2972 2973 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 2967 def self.from_json(attributes) return nil unless attributes.is_a?(Hash) new( topic_id: attributes.key?("topicId") ? attributes["topicId"] : attributes[:topic_id], ) end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this object.
2958 2959 2960 2961 2962 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 2958 def to_h { topic_id: @topic_id, }.compact end |