Module: DonorsChoose

Defined in:
lib/donors_choose.rb,
lib/donors_choose/version.rb,
lib/donors_choose/utils/static_struct.rb

Overview

simple implementation of the readonly OpenStruct class

Defined Under Namespace

Modules: Utils Classes: Project, Request

Constant Summary collapse

VERSION =

The current version of the gem.

"1.1.0"

Class Method Summary collapse

Class Method Details

.api_keyObject

We default to the development key that works for everyone. Set it to something else in production environments.


16
17
18
# File 'lib/donors_choose.rb', line 16

def self.api_key
  @api_key || "DONORSCHOOSE"
end

.api_key=(key) ⇒ Object

An API key is needed to make requests. Get one here.


10
11
12
# File 'lib/donors_choose.rb', line 10

def self.api_key=(key)
  @api_key = key
end