Class: Videojuicer::Presentation

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

Constant Summary

Constants included from Resource::Embeddable

Resource::Embeddable::OEMBED_ENDPOINT

Instance Attribute Summary

Attributes included from Configurable

#local_config

Instance Method Summary collapse

Methods included from Resource::Embeddable

#embed_code, #embed_size, #oembed_payload

Methods included from Resource

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

Methods included from Resource::Relationships::BelongsTo

included

Methods included from Resource::PropertyRegistry

#attr_get, #attr_set, #attributes, #attributes=, #coerce_value, #default_attributes, included, inherited, #initialize, #returnable_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

Instance Method Details



32
33
34
35
# File 'lib/videojuicer/presentation.rb', line 32

def permalink
  proxy = proxy_for(config)
  "#{proxy.host_stub}/presentations/#{id}.html?seed_name=#{seed_name}".gsub(":80/","/")
end