Class: Wowza::REST::Application
- Inherits:
-
Object
- Object
- Wowza::REST::Application
- Includes:
- Assignment::Attributes
- Defined in:
- lib/wowza/rest/application.rb
Instance Attribute Summary collapse
-
#app_type ⇒ Object
Returns the value of attribute app_type.
-
#conn ⇒ Object
Returns the value of attribute conn.
-
#drm_enabled ⇒ Object
Returns the value of attribute drm_enabled.
-
#dvr_enabled ⇒ Object
Returns the value of attribute dvr_enabled.
-
#href ⇒ Object
Returns the value of attribute href.
-
#id ⇒ Object
Returns the value of attribute id.
-
#server_name ⇒ Object
Returns the value of attribute server_name.
-
#stream_targets_enabled ⇒ Object
Returns the value of attribute stream_targets_enabled.
-
#transcoder_enabled ⇒ Object
Returns the value of attribute transcoder_enabled.
-
#vhost_name ⇒ Object
Returns the value of attribute vhost_name.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(attributes = {}) ⇒ Application
constructor
A new instance of Application.
- #instances ⇒ Object
- #resource_path ⇒ Object
- #server_path ⇒ Object
- #vhost_path ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ Application
Returns a new instance of Application.
11 12 13 14 |
# File 'lib/wowza/rest/application.rb', line 11 def initialize(attributes={}) assign_attributes(attributes) if attributes super() end |
Instance Attribute Details
#app_type ⇒ Object
Returns the value of attribute app_type.
7 8 9 |
# File 'lib/wowza/rest/application.rb', line 7 def app_type @app_type end |
#conn ⇒ Object
Returns the value of attribute conn.
7 8 9 |
# File 'lib/wowza/rest/application.rb', line 7 def conn @conn end |
#drm_enabled ⇒ Object
Returns the value of attribute drm_enabled.
7 8 9 |
# File 'lib/wowza/rest/application.rb', line 7 def drm_enabled @drm_enabled end |
#dvr_enabled ⇒ Object
Returns the value of attribute dvr_enabled.
7 8 9 |
# File 'lib/wowza/rest/application.rb', line 7 def dvr_enabled @dvr_enabled end |
#href ⇒ Object
Returns the value of attribute href.
7 8 9 |
# File 'lib/wowza/rest/application.rb', line 7 def href @href end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/wowza/rest/application.rb', line 7 def id @id end |
#server_name ⇒ Object
Returns the value of attribute server_name.
7 8 9 |
# File 'lib/wowza/rest/application.rb', line 7 def server_name @server_name end |
#stream_targets_enabled ⇒ Object
Returns the value of attribute stream_targets_enabled.
7 8 9 |
# File 'lib/wowza/rest/application.rb', line 7 def stream_targets_enabled @stream_targets_enabled end |
#transcoder_enabled ⇒ Object
Returns the value of attribute transcoder_enabled.
7 8 9 |
# File 'lib/wowza/rest/application.rb', line 7 def transcoder_enabled @transcoder_enabled end |
#vhost_name ⇒ Object
Returns the value of attribute vhost_name.
7 8 9 |
# File 'lib/wowza/rest/application.rb', line 7 def vhost_name @vhost_name end |
Instance Method Details
#attributes ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/wowza/rest/application.rb', line 16 def attributes { id: id, href: href, app_type: app_type, dvr_enabled: dvr_enabled, drm_enabled: drm_enabled, transcoder_enabled: transcoder_enabled, stream_targets_enabled: stream_targets_enabled, } end |
#instances ⇒ Object
28 29 30 |
# File 'lib/wowza/rest/application.rb', line 28 def instances Instances.new(conn, self) end |
#resource_path ⇒ Object
40 41 42 |
# File 'lib/wowza/rest/application.rb', line 40 def resource_path id && "#{vhost_path}/applications/#{id}" end |
#server_path ⇒ Object
48 49 50 |
# File 'lib/wowza/rest/application.rb', line 48 def server_path "/v2/servers/#{server_name}" end |
#vhost_path ⇒ Object
56 57 58 |
# File 'lib/wowza/rest/application.rb', line 56 def vhost_path "#{server_path}/vhosts/#{vhost_name}" end |