Class: Videojuicer::Seed

Inherits:
Object show all
Includes:
Exceptions, Resource
Defined in:
lib/videojuicer/seed.rb

Instance Attribute Summary

Attributes included from Configurable

#local_config

Class Method Summary collapse

Methods included from Resource

#destroy, #errors, #errors=, #errors_on, included, #new_record?, #reload, #save, #to_json, #update_attributes, #valid?, #validate_committed_response, #validate_response

Methods included from Resource::Relationships::BelongsTo

included

Methods included from Resource::PropertyRegistry

#attr_clean!, #attr_dirty!, #attr_dirty?, #attr_get, #attr_set, #attributes, #attributes=, #clean_dirty_attributes!, #coerce_value, #default_attributes, #dirty_attribute_keys, #dirty_attributes, included, inherited, #initialize, #invalid_attributes, #returnable_attributes, #set_default_attributes

Methods included from Resource::Inferrable

included

Methods included from OAuth::ProxyFactory

#proxy_for

Methods included from Configurable

#api_version, #config, #configure!, #consumer_key, #consumer_secret, #host, #port, #protocol, #scope, #seed_name, #token, #token_secret, #user_id

Class Method Details

.currentObject

Returns the currently-configured seed



12
13
14
15
16
# File 'lib/videojuicer/seed.rb', line 12

def self.current
  proxy = Videojuicer::OAuth::RequestProxy.new
  jobj = JSON.parse(proxy.get("/seeds/current.json").body)
  new(jobj)
end