Sha256: 2b7ef43d9814f58b2ae5aae9bcd0dafdb28d7716439a55cab56bd4900429c87e

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

module Yao::Resources
  class Tenant < Base
    friendly_attributes :id, :name, :description, :enabled

    self.service        = "identity"
    self.resource_name  = "tenant"
    self.resources_name = "tenants"
    self.admin          = true

    class << self
      def get_by_name(name)
        self.get("", name: name)
      end
      alias find_by_name get_by_name

      def accessible
        as_member { self.list }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yao-0.1.0 lib/yao/resources/tenant.rb