Module: LearnSprout

Defined in:
lib/learnsprout.rb,
lib/learnsprout/org.rb,
lib/learnsprout/nces.rb,
lib/learnsprout/page.rb,
lib/learnsprout/term.rb,
lib/learnsprout/phone.rb,
lib/learnsprout/client.rb,
lib/learnsprout/course.rb,
lib/learnsprout/school.rb,
lib/learnsprout/address.rb,
lib/learnsprout/section.rb,
lib/learnsprout/student.rb,
lib/learnsprout/teacher.rb,
lib/learnsprout/version.rb,
lib/learnsprout/connection.rb,
lib/learnsprout/exceptions.rb,
lib/learnsprout/response/parse_json.rb,
lib/learnsprout/response/follow_redirects.rb

Defined Under Namespace

Modules: Connection, Response Classes: Address, Client, Course, Nces, Org, Page, Phone, RequestException, School, Section, Student, Teacher, Term

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.debug=(debug) ⇒ Object



21
22
23
# File 'lib/learnsprout.rb', line 21

def self.debug=(debug)
  @@debug = debug
end

.debugging?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/learnsprout.rb', line 17

def self.debugging?
  !!@@debug
end

.endpointObject



5
6
7
# File 'lib/learnsprout.rb', line 5

def self.endpoint
  @@endpoint
end

.endpoint=(endpoint) ⇒ Object



1
2
3
# File 'lib/learnsprout.rb', line 1

def self.endpoint=(endpoint)
  @@endpoint = endpoint
end

.user_agentObject



13
14
15
# File 'lib/learnsprout.rb', line 13

def self.user_agent
  @@user_agent
end

.user_agent=(user_agent) ⇒ Object



9
10
11
# File 'lib/learnsprout.rb', line 9

def self.user_agent=(user_agent)
  @@user_agent = user_agent
end