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.25 spec/support/requests/error_resource_requests.rb
api_resource-0.6.24 spec/support/requests/error_resource_requests.rb
api_resource-0.6.23 spec/support/requests/error_resource_requests.rb
api_resource-0.6.22 spec/support/requests/error_resource_requests.rb
api_resource-0.6.21 spec/support/requests/error_resource_requests.rb
api_resource-0.6.20 spec/support/requests/error_resource_requests.rb
api_resource-0.6.19 spec/support/requests/error_resource_requests.rb
api_resource-0.6.18 spec/support/requests/error_resource_requests.rb
api_resource-0.6.17 spec/support/requests/error_resource_requests.rb
api_resource-0.6.16 spec/support/requests/error_resource_requests.rb
api_resource-0.6.15 spec/support/requests/error_resource_requests.rb
api_resource-0.6.14 spec/support/requests/error_resource_requests.rb
api_resource-0.6.13 spec/support/requests/error_resource_requests.rb
api_resource-0.6.12 spec/support/requests/error_resource_requests.rb
api_resource-0.6.11 spec/support/requests/error_resource_requests.rb
api_resource-0.6.9 spec/support/requests/error_resource_requests.rb
api_resource-0.6.10 spec/support/requests/error_resource_requests.rb
api_resource-0.6.8 spec/support/requests/error_resource_requests.rb
api_resource-0.6.7 spec/support/requests/error_resource_requests.rb
api_resource-0.6.6 spec/support/requests/error_resource_requests.rb