Module: Streamio
- Defined in:
- lib/streamio.rb,
lib/streamio/image.rb,
lib/streamio/model.rb,
lib/streamio/video.rb,
lib/streamio/upload.rb,
lib/streamio/version.rb,
lib/streamio/encoding_profile.rb
Defined Under Namespace
Classes: EncodingProfile, Image, Model, Upload, Video
Constant Summary collapse
- VERSION =
"0.7.0"
Class Attribute Summary collapse
-
.host ⇒ Object
Returns the value of attribute host.
-
.password ⇒ Object
Returns the value of attribute password.
-
.use_ssl ⇒ Object
(also: use_ssl?)
Returns the value of attribute use_ssl.
-
.username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
- .authenticated_api_base ⇒ Object
-
.configure {|_self| ... } ⇒ Object
The idiomatic configure block for the Streamio gem.
- .protocol ⇒ Object
Class Attribute Details
.host ⇒ Object
Returns the value of attribute host.
17 18 19 |
# File 'lib/streamio.rb', line 17 def host @host end |
.password ⇒ Object
Returns the value of attribute password.
15 16 17 |
# File 'lib/streamio.rb', line 15 def password @password end |
.use_ssl ⇒ Object Also known as: use_ssl?
Returns the value of attribute use_ssl.
16 17 18 |
# File 'lib/streamio.rb', line 16 def use_ssl @use_ssl end |
.username ⇒ Object
Returns the value of attribute username.
14 15 16 |
# File 'lib/streamio.rb', line 14 def username @username end |
Class Method Details
.authenticated_api_base ⇒ Object
46 47 48 |
# File 'lib/streamio.rb', line 46 def authenticated_api_base "#{protocol}#{username}:#{password}@#{host}/api/v1" end |
.configure {|_self| ... } ⇒ Object
The idiomatic configure block for the Streamio gem. Basically a shortcut for the Streamio module attributes.
27 28 29 |
# File 'lib/streamio.rb', line 27 def configure yield self end |
.protocol ⇒ Object
37 38 39 |
# File 'lib/streamio.rb', line 37 def protocol use_ssl? ? "https://" : "http://" end |