Class: Bulk::ApiController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Bulk::ApiController
- Defined in:
- app/controllers/bulk/api_controller.rb
Instance Method Summary collapse
- #create {|options| ... } ⇒ Object
- #delete {|options| ... } ⇒ Object
- #get {|options| ... } ⇒ Object
- #update {|options| ... } ⇒ Object
Instance Method Details
#create {|options| ... } ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/bulk/api_controller.rb', line 8 def create = Bulk::Resource.create(self) yield if block_given? render end |
#delete {|options| ... } ⇒ Object
20 21 22 23 24 |
# File 'app/controllers/bulk/api_controller.rb', line 20 def delete = Bulk::Resource.delete(self) yield if block_given? render end |