Sha256: 453adcf7146194d0d28fb4837a43ab2189fc2d2df1465dce61358ed76e39d4e9
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 KB
Contents
# ReportingCloud Ruby Wrapper # # Official wrapper (authored by Text Control GmbH, publisher of ReportingCloud) to access # ReportingCloud in Ruby. # # Go to http://www.reporting.cloud to learn more about ReportingCloud # Go to https://github.com/TextControl/txtextcontrol-reportingcloud-ruby for the # canonical source repository. # # License: https://raw.githubusercontent.com/TextControl/txtextcontrol-reportingcloud-ruby/master/LICENSE.md # # Copyright: © 2019 Text Control GmbH module TXTextControl module ReportingCloud # Represents a ReportingCloud API key object. # @attr key [String] The actual API Key that belongs to the account. # @attr is_active [Boolean] Specifies whether the API Key is active or not (not used yet). # @author Thorsten Kummerow (@thomerow) class APIKey attr_reader :is_active # @param key [String] The actual API Key that belongs to the account. # @param is_active [Boolean] Specifies whether the API Key is active or not (not used yet). def initialize(key, is_active = true) self.key = key @is_active = is_active end def key @key end def key=(val) unless val.nil? || ((val.kind_of? String) && !val.to_s.empty?) raise ArgumentError, "API key must be a non empty string." end @key = val end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
txtextcontrol-reportingcloud-1.2.0 | lib/txtextcontrol/reportingcloud/api_key.rb |