Class: Subscriptions::Notes::Deleted::DeletedNote
- Inherits:
-
Struct
- Object
- Struct
- Subscriptions::Notes::Deleted::DeletedNote
- Defined in:
- app/graphql/subscriptions/notes/deleted.rb
Instance Attribute Summary collapse
-
#discussion_model_id ⇒ Object
Returns the value of attribute discussion_model_id.
-
#last_discussion_note ⇒ Object
Returns the value of attribute last_discussion_note.
-
#model_id ⇒ Object
Returns the value of attribute model_id.
-
#model_name ⇒ Object
Returns the value of attribute model_name.
Instance Method Summary collapse
Instance Attribute Details
#discussion_model_id ⇒ Object
Returns the value of attribute 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_note ⇒ Object
Returns the value of attribute last_discussion_note
8 9 10 |
# File 'app/graphql/subscriptions/notes/deleted.rb', line 8 def last_discussion_note @last_discussion_note end |
#model_id ⇒ Object
Returns the value of attribute model_id
8 9 10 |
# File 'app/graphql/subscriptions/notes/deleted.rb', line 8 def model_id @model_id end |
#model_name ⇒ Object
Returns the value of attribute model_name
8 9 10 |
# File 'app/graphql/subscriptions/notes/deleted.rb', line 8 def model_name @model_name end |
Instance Method Details
#discussion_id ⇒ Object
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_id ⇒ Object
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 |