Sha256: 8fcf270ef43374ae9a236e3b9861a9abb9ecccd91e41f1a31e664d7635d3eef1
Contents?: true
Size: 422 Bytes
Versions: 3
Compression:
Stored size: 422 Bytes
Contents
module Saasable::SaasDocument @saas_document = nil def self.included klass if @saas_document and @saas_document.name != klass.name raise Saasable::Errors::MultipleSaasDocuments, "you can only have one Saasable::SaasDocument" else @saas_document = klass end klass.class_eval do field :hosts, :type => Array end end def self.saas_document @saas_document end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
saasable-0.1.3 | lib/saasable/saas_document.rb |
saasable-0.1.2 | lib/saasable/saas_document.rb |
saasable-0.1.1 | lib/saasable/saas_document.rb |