class ApraService::NotificationResponse

Attributes

error[RW]
notification[RW]

Public Class Methods

from_hash(hash) click to toggle source
# File lib/apralib/notification_response.rb, line 13
def self.from_hash(hash)
  notification = Notification.from_hash(hash[:ilmoitus])
  error = hash[:virhe]
  NotificationResponse.new(notification, error)
end
new(notification, error) click to toggle source
# File lib/apralib/notification_response.rb, line 7
def initialize(notification, error)
  @notification = notification
  @error = error
end