Class: Message

Inherits:
OpenShift::Model
  • Object
show all
Defined in:
app/models/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(severity = :info, text = nil, exit_code = nil, field = nil) ⇒ Message

Returns a new instance of Message.



4
5
6
7
8
9
# File 'app/models/message.rb', line 4

def initialize(severity=:info, text=nil, exit_code=nil, field=nil)
  self.severity = severity
  self.text = text
  self.exit_code = exit_code
  self.field = field
end

Instance Attribute Details

#exit_codeObject

Returns the value of attribute exit_code.



2
3
4
# File 'app/models/message.rb', line 2

def exit_code
  @exit_code
end

#fieldObject

Returns the value of attribute field.



2
3
4
# File 'app/models/message.rb', line 2

def field
  @field
end

#severityObject

Returns the value of attribute severity.



2
3
4
# File 'app/models/message.rb', line 2

def severity
  @severity
end

#textObject

Returns the value of attribute text.



2
3
4
# File 'app/models/message.rb', line 2

def text
  @text
end