Class: Videojuicer::Seed
- Includes:
- Exceptions, Resource
- Defined in:
- lib/videojuicer/seed.rb
Instance Attribute Summary
Attributes included from Configurable
Class Method Summary collapse
-
.current ⇒ Object
Returns the currently-configured seed.
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
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
Methods included from OAuth::ProxyFactory
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
.current ⇒ Object
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 |