Class: DingSDK::Models::Shared::Check
- Inherits:
-
Object
- Object
- DingSDK::Models::Shared::Check
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/ding_sdk/models/shared/check.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(code: nil, created_at: nil, id: nil, status: nil, type: nil) ⇒ Check
constructor
A new instance of Check.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(code: nil, created_at: nil, id: nil, status: nil, type: nil) ⇒ Check
Returns a new instance of Check.
29 30 31 32 33 34 35 |
# File 'lib/ding_sdk/models/shared/check.rb', line 29 def initialize(code: nil, created_at: nil, id: nil, status: nil, type: nil) @code = code @created_at = created_at @id = id @status = status @type = type end |
Instance Method Details
#==(other) ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/ding_sdk/models/shared/check.rb', line 37 def ==(other) return false unless other.is_a? self.class return false unless @code == other.code return false unless @created_at == other.created_at return false unless @id == other.id return false unless @status == other.status return false unless @type == other.type true end |