Sha256: a39254a06de7b20daa1072aee4c5d066d0a2997ede821b548af2f0acc61fb988

Contents?: true

Size: 233 Bytes

Versions: 16

Compression:

Stored size: 233 Bytes

Contents

require "ddr_aux/client"

module Ddr::Models
  class AdminSet < DdrAux::Client::AdminSet

    def self.call(obj)
      if obj.admin_set
        find(code: obj.admin_set)
      end
    end

    def to_s
      title
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ddr-models-3.0.0.beta.3 lib/ddr/models/admin_set.rb
ddr-models-3.0.0.beta.2 lib/ddr/models/admin_set.rb
ddr-models-2.3.2 lib/ddr/models/admin_set.rb
ddr-models-3.0.0.beta.1 lib/ddr/models/admin_set.rb
ddr-models-2.3.1 lib/ddr/models/admin_set.rb
ddr-models-3.0.0.alpha.4 lib/ddr/models/admin_set.rb
ddr-models-3.0.0.alpha.3 lib/ddr/models/admin_set.rb
ddr-models-2.3.0 lib/ddr/models/admin_set.rb
ddr-models-3.0.0.alpha.2 lib/ddr/models/admin_set.rb
ddr-models-3.0.0.alpha.1 lib/ddr/models/admin_set.rb
ddr-models-2.2.0 lib/ddr/models/admin_set.rb
ddr-models-2.1.3 lib/ddr/models/admin_set.rb
ddr-models-2.1.2 lib/ddr/models/admin_set.rb
ddr-models-2.1.1 lib/ddr/models/admin_set.rb
ddr-models-2.1.0 lib/ddr/models/admin_set.rb
ddr-models-2.1.0.rc2 lib/ddr/models/admin_set.rb