Class: Wistia::Base

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/wistia/base.rb

Direct Known Subclasses

Media, Project, Projects::Sharing

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.refresh_config!Object

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

#to_json(options = {}) ⇒ Object



15
16
17
# File 'lib/wistia/base.rb', line 15

def to_json(options = {})
  return self.attributes.to_json(options)
end