Class: ActiveResource::Base
- Inherits:
-
Object
- Object
- ActiveResource::Base
- Defined in:
- lib/superdupe/active_resource_extensions.rb
Class Method Summary collapse
- .find(*arguments) ⇒ Object
-
.password=(password) ⇒ Object
Overwrite the configuration of ActiveResource authentication (self.password).
-
.user=(user) ⇒ Object
Overwrite the configuration of ActiveResource authentication (self.user).
Class Method Details
.find(*arguments) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/superdupe/active_resource_extensions.rb', line 20 def find(*arguments) scope = arguments.slice!(0) = arguments.slice!(0) || {} case scope when :all then find_every() when :first then find_every().first when :last then find_every().last when :one then find_one() else find_single(scope, ) end end |
.password=(password) ⇒ Object
Overwrite the configuration of ActiveResource authentication (self.password). Don’t need it for mocking.
16 17 |
# File 'lib/superdupe/active_resource_extensions.rb', line 16 def password=(password) end |
.user=(user) ⇒ Object
Overwrite the configuration of ActiveResource authentication (self.user). Don’t need it for mocking.
12 13 |
# File 'lib/superdupe/active_resource_extensions.rb', line 12 def user=(user) end |