Sha256: 2f63ba697bd6bfd921e4657d33ab756611a0a7fcaaaef23bb5e742687889013c

Contents?: true

Size: 312 Bytes

Versions: 3

Compression:

Stored size: 312 Bytes

Contents

module Syncano
  module Resources
    class ResourceInvalid < StandardError
      attr_accessor :resource

      def initialize(resource)
        self.resource = resource
      end

      def to_s
        "#{self.class.name} <#{resource.class.name} #{resource.errors.full_messages}>"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
syncano-4.0.0.alpha4 lib/syncano/resources/resource_invalid.rb
syncano-4.0.0.alpha3 lib/syncano/resources/resource_invalid.rb
syncano-4.0.0.alpha2 lib/syncano/resources/resource_invalid.rb