Sha256: f9927862fae63f018d40a3ae82e636fb0d50ebca60bd5fd7c93788e1dbb54a92
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
module Smart module REST module Configuration def self.included(base) base.extend ClassMethods end module ClassMethods def configure(&block) config = self.new raise ArgumentError, "Please provide configuration block" unless block_given? yield config [:sp_id, :sp_password, :service_id, :access_code, :path_to_cert].each do |required| raise "#{required} is required" unless config.send(required) end config end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smart-mobile-0.0.1 | lib/smart/rest/config.rb |