Class: StackOne::Models::Shared::GuideSectionMeta
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::GuideSectionMeta
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/guidesectionmeta.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(content:, title:, applicable_scopes: nil, image: nil, list: nil, steps: nil) ⇒ GuideSectionMeta
constructor
A new instance of GuideSectionMeta.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(content:, title:, applicable_scopes: nil, image: nil, list: nil, steps: nil) ⇒ GuideSectionMeta
Returns a new instance of GuideSectionMeta.
29 30 31 32 33 34 35 36 |
# File 'lib/stack_one/models/shared/guidesectionmeta.rb', line 29 def initialize(content:, title:, applicable_scopes: nil, image: nil, list: nil, steps: nil) @content = content @title = title @applicable_scopes = applicable_scopes @image = image @list = list @steps = steps end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/stack_one/models/shared/guidesectionmeta.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @content == other.content return false unless @title == other.title return false unless @applicable_scopes == other.applicable_scopes return false unless @image == other.image return false unless @list == other.list return false unless @steps == other.steps true end |