Module: SchoologyClient

Defined in:
lib/schoology_client.rb,
lib/schoology_client/error.rb,
lib/schoology_client/oauth.rb,
lib/schoology_client/client.rb,
lib/schoology_client/object.rb,
lib/schoology_client/version.rb,
lib/schoology_client/resource.rb,
lib/schoology_client/configuration.rb,
lib/schoology_client/objects/group.rb,
lib/schoology_client/resources/group.rb,
lib/schoology_client/generators/schoology_client/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Client, Configuration, Error, Group, GroupResource, OAuth, Object, Resource

Constant Summary collapse

VERSION =
"0.1.5"

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



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

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



33
34
35
# File 'lib/schoology_client.rb', line 33

def self.configure
  yield(configuration)
end

Instance Method Details

#initializeObject



37
38
39
40
41
# File 'lib/schoology_client.rb', line 37

def initialize
  @oauth_consumer_key = self.class.configuration.oauth_consumer_key
  @oauth_consumer_secret = self.class.configuration.oauth_consumer_secret
  @url = self.class.configuration.url
end