Class: CodeBroker::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/code_broker/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.programObject

Returns the value of attribute program.



4
5
6
# File 'lib/code_broker/config.rb', line 4

def program
  @program
end

.short_codeObject

Returns the value of attribute short_code.



4
5
6
# File 'lib/code_broker/config.rb', line 4

def short_code
  @short_code
end

Class Method Details

.access_key=(val) ⇒ Object



11
12
13
# File 'lib/code_broker/config.rb', line 11

def self.access_key=(val)
  Connection.default_params[:key] = val
end

.account_id=(val) ⇒ Object



7
8
9
# File 'lib/code_broker/config.rb', line 7

def self.(val)
  Connection.default_params[:cbid] = val
end