Sha256: 726338c28dd513fff67009099e3cbbe3f0cec3a0e3cf88a5ede41150fddcc506
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
# ReportingCloud Ruby SDK # # Official Ruby SDK for the ReportingCloud Web API. Authored, maintained and fully supported # by Text Control GmbH. (http://www.textcontrol.com). # # 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.1 | lib/txtextcontrol/reportingcloud/api_key.rb |