Module: Warp::ActionMatchers

Defined in:
lib/warp/action_matchers/matcher.rb,
lib/warp/action_matchers/create_matcher.rb,
lib/warp/action_matchers/update_matcher.rb,
lib/warp/action_matchers/destroy_matcher.rb

Defined Under Namespace

Classes: CreateMatcher, DestroyMatcher, Matcher, UpdateMatcher

Instance Method Summary collapse

Instance Method Details

#create(model) ⇒ Object



26
27
28
# File 'lib/warp/action_matchers/create_matcher.rb', line 26

def create(model)
  CreateMatcher.new(model)
end

#destroy(model) ⇒ Object



26
27
28
# File 'lib/warp/action_matchers/destroy_matcher.rb', line 26

def destroy(model)
  DestroyMatcher.new(model)
end

#update(model) ⇒ Object



26
27
28
# File 'lib/warp/action_matchers/update_matcher.rb', line 26

def update(model)
  UpdateMatcher.new(model)
end