Module: VzaarApi
- Defined in:
- lib/vzaar_api.rb,
lib/vzaar_api/video.rb,
lib/vzaar_api/lib/api.rb,
lib/vzaar_api/version.rb,
lib/vzaar_api/abstract.rb,
lib/vzaar_api/category.rb,
lib/vzaar_api/playlist.rb,
lib/vzaar_api/rendition.rb,
lib/vzaar_api/upload/s3.rb,
lib/vzaar_api/link_upload.rb,
lib/vzaar_api/ingest_recipe.rb,
lib/vzaar_api/encoding_preset.rb,
lib/vzaar_api/legacy_rendition.rb,
lib/vzaar_api/lib/api_response.rb,
lib/vzaar_api/signature/single.rb,
lib/vzaar_api/lib/active_object.rb,
lib/vzaar_api/lib/will_paginate.rb,
lib/vzaar_api/signature/factory.rb,
lib/vzaar_api/lib/has_attributes.rb,
lib/vzaar_api/lib/paged_resource.rb,
lib/vzaar_api/signature/abstract.rb,
lib/vzaar_api/signature/multipart.rb,
lib/vzaar_api/upload/virtual_file.rb,
lib/vzaar_api/lib/has_resource_url.rb,
lib/vzaar_api/strategy/video/create.rb,
lib/vzaar_api/lib/has_collection_builder.rb
Defined Under Namespace
Modules: Lib, LinkUpload, Signature, Strategy, Upload Classes: Abstract, Category, EncodingPreset, Error, IngestRecipe, LegacyRendition, Playlist, Rendition, Video
Constant Summary collapse
- DEFAULT_HOSTNAME =
'api.vzaar.com'- DEFAULT_PROTOCOL =
'https'- VERSION =
'2.0.0'- UPLOADER =
'Ruby-2.0.0'
Class Attribute Summary collapse
-
.auth_token ⇒ Object
Returns the value of attribute auth_token.
-
.client_id ⇒ Object
Returns the value of attribute client_id.
-
.hostname ⇒ Object
Returns the value of attribute hostname.
-
.rate_limit ⇒ Object
Returns the value of attribute rate_limit.
-
.rate_limit_remaining ⇒ Object
Returns the value of attribute rate_limit_remaining.
-
.rate_limit_reset ⇒ Object
Returns the value of attribute rate_limit_reset.
Class Method Summary collapse
Class Attribute Details
.auth_token ⇒ Object
Returns the value of attribute auth_token.
44 45 46 |
# File 'lib/vzaar_api.rb', line 44 def auth_token @auth_token end |
.client_id ⇒ Object
Returns the value of attribute client_id.
44 45 46 |
# File 'lib/vzaar_api.rb', line 44 def client_id @client_id end |
.hostname ⇒ Object
Returns the value of attribute hostname.
44 45 46 |
# File 'lib/vzaar_api.rb', line 44 def hostname @hostname end |
.rate_limit ⇒ Object
Returns the value of attribute rate_limit.
44 45 46 |
# File 'lib/vzaar_api.rb', line 44 def rate_limit @rate_limit end |
.rate_limit_remaining ⇒ Object
Returns the value of attribute rate_limit_remaining.
44 45 46 |
# File 'lib/vzaar_api.rb', line 44 def rate_limit_remaining @rate_limit_remaining end |
.rate_limit_reset ⇒ Object
Returns the value of attribute rate_limit_reset.
44 45 46 |
# File 'lib/vzaar_api.rb', line 44 def rate_limit_reset @rate_limit_reset end |
Class Method Details
.protocol ⇒ Object
51 52 53 |
# File 'lib/vzaar_api.rb', line 51 def protocol @protocol || DEFAULT_PROTOCOL end |
.protocol=(value) ⇒ Object
55 56 57 |
# File 'lib/vzaar_api.rb', line 55 def protocol=(value) @protocol = value.downcase == 'https' ? 'https' : 'http' end |