Exception: Postnhost::Publishing::Error

Inherits:
StandardError
  • Object
show all
Defined in:
app/services/postnhost/publishing/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(messages) ⇒ Error

Returns a new instance of Error.



6
7
8
9
# File 'app/services/postnhost/publishing/error.rb', line 6

def initialize(messages)
  @messages = Array(messages)
  super(@messages.join(", "))
end

Instance Attribute Details

#messagesObject (readonly)

Returns the value of attribute messages.



4
5
6
# File 'app/services/postnhost/publishing/error.rb', line 4

def messages
  @messages
end