Class: GustoEmbedded::Models::Shared::CreateFlowRequest

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/create_flow_request.rb

Overview

Request body for creating a flow.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(flow_type:, entity_uuid: nil, entity_type: nil, options: nil) ⇒ CreateFlowRequest

Returns a new instance of CreateFlowRequest.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/shared/create_flow_request.rb', line 25

def initialize(flow_type:, entity_uuid: nil, entity_type: nil, options: nil)
  @flow_type = flow_type
  @entity_uuid = entity_uuid
  @entity_type = entity_type
  @options = options
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gusto_embedded/models/shared/create_flow_request.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @flow_type == other.flow_type
  return false unless @entity_uuid == other.entity_uuid
  return false unless @entity_type == other.entity_type
  return false unless @options == other.options
  true
end