Sha256: 1451f903718b1ad28123f7e6eaa008022b25685e0f487fb49f64d320f028171e

Contents?: true

Size: 474 Bytes

Versions: 58

Compression:

Stored size: 474 Bytes

Contents

HashDealer.define(:new_error_resource) do
  attributes({
    :protected => [:id],
    :public => [:name, :age],
  })
end

HashDealer.define(:error_resource) do
  name("Name")
  age("age")
end

HashDealer.define(:error_resource_errors) do
  errors({
    :name => ["must not be empty"],
    :age => ["must be a valid integer"]
  })
end

HashDealer.define(:error_resource_full_message_errors) do
  errors([
    "Name cannot be empty",
    "Age must be a valid integer"
  ])
end

Version data entries

58 entries across 58 versions & 3 rubygems

Version Path
api_resource-0.6.5 spec/support/requests/error_resource_requests.rb
api_resource-0.6.4 spec/support/requests/error_resource_requests.rb
api_resource-0.6.3 spec/support/requests/error_resource_requests.rb
api_resource-0.6.2 spec/support/requests/error_resource_requests.rb
api_resource-0.6.1 spec/support/requests/error_resource_requests.rb
api_resource-0.6.0 spec/support/requests/error_resource_requests.rb
api_resource-0.5.1 spec/support/requests/error_resource_requests.rb
api_resource-0.5.0 spec/support/requests/error_resource_requests.rb
api_resource-0.4.3 spec/support/requests/error_resource_requests.rb
api_resource-0.4.2 spec/support/requests/error_resource_requests.rb
api_resource-0.4.0 spec/support/requests/error_resource_requests.rb
api_resource-0.3.14 spec/support/requests/error_resource_requests.rb
api_resource-0.3.13 spec/support/requests/error_resource_requests.rb
api_resource-0.3.12 spec/support/requests/error_resource_requests.rb
api_resource-0.3.11 spec/support/requests/error_resource_requests.rb
api_resource-0.3.10 spec/support/requests/error_resource_requests.rb
api_resource-0.3.8 spec/support/requests/error_resource_requests.rb
api_resource-0.3.7 spec/support/requests/error_resource_requests.rb
api_resource-0.3.6 spec/support/requests/error_resource_requests.rb
api_resource-0.3.5 spec/support/requests/error_resource_requests.rb