Class: StackOne::Models::Shared::ContentBlock

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(content: nil, created_at: nil, id: nil, name: nil, remote_id: nil, status: nil, tags: nil, type: nil, updated_at: nil) ⇒ ContentBlock

Returns a new instance of ContentBlock.



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/stack_one/models/shared/contentblock.rb', line 35

def initialize(content: nil, created_at: nil, id: nil, name: nil, remote_id: nil, status: nil, tags: nil, type: nil, updated_at: nil)
  @content = content
  @created_at = created_at
  @id = id
  @name = name
  @remote_id = remote_id
  @status = status
  @tags = tags
  @type = type
  @updated_at = updated_at
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/stack_one/models/shared/contentblock.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @content == other.content
  return false unless @created_at == other.created_at
  return false unless @id == other.id
  return false unless @name == other.name
  return false unless @remote_id == other.remote_id
  return false unless @status == other.status
  return false unless @tags == other.tags
  return false unless @type == other.type
  return false unless @updated_at == other.updated_at
  true
end