Module: SocialcastApi
- Defined in:
- lib/socialcast-api.rb,
lib/socialcast-api/base.rb
Defined Under Namespace
Classes: Attachment, Base, Category, Comment, Configuration, ContentFilter, Group, GroupMembership, Message, Stream, User
Class Method Summary collapse
Class Method Details
.configuration ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/socialcast-api.rb', line 12 def self.configuration if block_given? yield Configuration.instance if Configuration.instance.config_file config = YAML::load_file(Configuration.config_file) Configuration.site = config['site'] Configuration.user = config['user'] Configuration.password = config['password'] end require 'socialcast-api/base' end Configuration.instance end |