module JSONAPI::Resources::Matchers

Constants

VERSION

Public Instance Methods

filter(name) click to toggle source
# File lib/jsonapi/resources/matchers.rb, line 32
def filter(name)
  Filter.new(name)
end
have_attribute(name) click to toggle source
# File lib/jsonapi/resources/matchers.rb, line 28
def have_attribute(name)
  HaveAttribute.new(name)
end
have_creatable_field(name) click to toggle source
# File lib/jsonapi/resources/matchers.rb, line 16
def have_creatable_field(name)
  HaveCreatableField.new(name)
end
have_many(name) click to toggle source
# File lib/jsonapi/resources/matchers.rb, line 36
def have_many(name)
  Relationship.new(:have_many, name)
end
have_model_name(name) click to toggle source
# File lib/jsonapi/resources/matchers.rb, line 44
def have_model_name(name)
  HaveModelName.new(name)
end
have_one(name) click to toggle source
# File lib/jsonapi/resources/matchers.rb, line 40
def have_one(name)
  Relationship.new(:have_one, name)
end
have_primary_key(name) click to toggle source
# File lib/jsonapi/resources/matchers.rb, line 48
def have_primary_key(name)
  HavePrimaryKey.new(name)
end
have_sortable_field(name) click to toggle source
# File lib/jsonapi/resources/matchers.rb, line 24
def have_sortable_field(name)
  HaveSortableField.new(name)
end
have_updatable_field(name) click to toggle source
# File lib/jsonapi/resources/matchers.rb, line 20
def have_updatable_field(name)
  HaveUpdatableField.new(name)
end