Class: Gitlab::InternalPostReceive::Response::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/internal_post_receive/response.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



9
10
11
# File 'lib/gitlab/internal_post_receive/response.rb', line 9

def message
  @message
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



9
10
11
# File 'lib/gitlab/internal_post_receive/response.rb', line 9

def type
  @type
end

Class Method Details

.alert(text) ⇒ Object



14
15
16
# File 'lib/gitlab/internal_post_receive/response.rb', line 14

def self.alert(text)
  new(text, :alert)
end

.basic(text) ⇒ Object



10
11
12
# File 'lib/gitlab/internal_post_receive/response.rb', line 10

def self.basic(text)
  new(text, :basic)
end