Module: RestPack::Resource::Single
- Defined in:
- lib/restpack-resource/resource/single.rb
Instance Method Summary collapse
Instance Method Details
#single_resource(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/restpack-resource/resource/single.rb', line 4 def single_resource( = {}) raise InvalidArguments, "id must be specified" unless [:id] .reverse_merge!( :includes => [] ) () () #TODO: GJ: other validations get_single_resource() end |