Class: StackOne::Models::Shared::Schemas
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::Schemas
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/schemas.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(body: nil, from: nil, preheader: nil, reply_to: nil, subject: nil) ⇒ Schemas
constructor
A new instance of Schemas.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(body: nil, from: nil, preheader: nil, reply_to: nil, subject: nil) ⇒ Schemas
Returns a new instance of Schemas.
27 28 29 30 31 32 33 |
# File 'lib/stack_one/models/shared/schemas.rb', line 27 def initialize(body: nil, from: nil, preheader: nil, reply_to: nil, subject: nil) @body = body @from = from @preheader = preheader @reply_to = reply_to @subject = subject end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/stack_one/models/shared/schemas.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @body == other.body return false unless @from == other.from return false unless @preheader == other.preheader return false unless @reply_to == other.reply_to return false unless @subject == other.subject true end |