Class: GustoEmbedded::Models::Shared::OnboardingStep
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::OnboardingStep
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/onboarding_step.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(title: nil, id: nil, required: nil, completed: nil, skippable: nil, requirements: nil, completed_at: nil) ⇒ OnboardingStep
constructor
A new instance of OnboardingStep.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(title: nil, id: nil, required: nil, completed: nil, skippable: nil, requirements: nil, completed_at: nil) ⇒ OnboardingStep
Returns a new instance of OnboardingStep.
31 32 33 34 35 36 37 38 39 |
# File 'lib/gusto_embedded/models/shared/onboarding_step.rb', line 31 def initialize(title: nil, id: nil, required: nil, completed: nil, skippable: nil, requirements: nil, completed_at: nil) @title = title @id = id @required = required @completed = completed @skippable = skippable @requirements = requirements @completed_at = completed_at end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/gusto_embedded/models/shared/onboarding_step.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @title == other.title return false unless @id == other.id return false unless @required == other.required return false unless @completed == other.completed return false unless @skippable == other.skippable return false unless @requirements == other.requirements return false unless @completed_at == other.completed_at true end |