Class: Wistia::Base
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Wistia::Base
- Defined in:
- lib/wistia/base.rb
Direct Known Subclasses
Class Method Summary (collapse)
-
+ (Object) refresh_config!
Resets all the ActiveResource configuration options to what's currently stored in the configatron.
Instance Method Summary (collapse)
Class Method Details
+ (Object) refresh_config!
Resets all the ActiveResource configuration options to what's currently stored in the configatron.
6 7 8 9 10 11 |
# File 'lib/wistia/base.rb', line 6 def self.refresh_config! self.site = Wistia::Config.config.api.url self.user = Wistia::Config.config.api.user self.password = Wistia::Config.config.api.key self.format = Wistia::Config.config.api.format.to_sym end |
Instance Method Details
- (Object) to_json(options = {})
15 16 17 |
# File 'lib/wistia/base.rb', line 15 def to_json( = {}) return self.attributes.to_json() end |