Class: Subscriptions::Notes::Deleted::DeletedNote

Inherits:
Struct
  • Object
show all
Defined in:
app/graphql/subscriptions/notes/deleted.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#discussion_model_idObject

Returns the value of attribute discussion_model_id

Returns:

  • (Object)

    the current value of discussion_model_id



8
9
10
# File 'app/graphql/subscriptions/notes/deleted.rb', line 8

def discussion_model_id
  @discussion_model_id
end

#last_discussion_noteObject

Returns the value of attribute last_discussion_note

Returns:

  • (Object)

    the current value of last_discussion_note



8
9
10
# File 'app/graphql/subscriptions/notes/deleted.rb', line 8

def last_discussion_note
  @last_discussion_note
end

#model_idObject

Returns the value of attribute model_id

Returns:

  • (Object)

    the current value of model_id



8
9
10
# File 'app/graphql/subscriptions/notes/deleted.rb', line 8

def model_id
  @model_id
end

#model_nameObject

Returns the value of attribute model_name

Returns:

  • (Object)

    the current value of model_name



8
9
10
# File 'app/graphql/subscriptions/notes/deleted.rb', line 8

def model_name
  @model_name
end

Instance Method Details

#discussion_idObject



13
14
15
# File 'app/graphql/subscriptions/notes/deleted.rb', line 13

def discussion_id
  ::Gitlab::GlobalId.as_global_id(discussion_model_id, model_name: Discussion.name)
end

#to_global_idObject



9
10
11
# File 'app/graphql/subscriptions/notes/deleted.rb', line 9

def to_global_id
  ::Gitlab::GlobalId.as_global_id(model_id, model_name: model_name)
end