Sha256: f91dd75650532d63dfd9d3fcde4c5cc5054b42c76f94400d1d649b100ddf837f
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
require 'osc_ruby/version' require 'osc_ruby/configuration' module OSCRuby class Client # The top-level class that handles configuration and connection to the Oracle Service Cloud REST API. attr_accessor :config def initialize raise ArgumentError, "block not given" unless block_given? self.config ||= OSCRuby::Configuration.new yield(config) check_config end def check_config if config.interface =='' raise ArgumentError, "Interface cannot be nil or blank" elsif config.username =='' raise ArgumentError, "Username cannot be nil or blank" elsif config.password =='' raise ArgumentError, "Password cannot be nil or blank" end true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
osc_ruby-0.1.0 | lib/osc_ruby/client.rb |
osc_ruby-0.0.14 | lib/osc_ruby/client.rb |