Class: Ddr::Models::AdminSet
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Ddr::Models::AdminSet
- Defined in:
- lib/ddr/models/admin_set.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(obj) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/ddr/models/admin_set.rb', line 8 def self.call(obj) if obj.admin_set new get(:find, code: obj.admin_set) end rescue ActiveResource::ResourceNotFound => e raise Ddr::Models::NotFoundError, e end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/ddr/models/admin_set.rb', line 16 def to_s title end |