Class: BrightcoveService::Video
- Defined in:
- lib/brightcove_service/video.rb
Instance Attribute Summary collapse
-
#brightcove_video ⇒ Object
readonly
Returns the value of attribute brightcove_video.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(params) ⇒ Video
constructor
A new instance of Video.
Methods inherited from Base
Constructor Details
#initialize(params) ⇒ Video
Returns a new instance of Video.
10 11 12 |
# File 'lib/brightcove_service/video.rb', line 10 def initialize(params) @params = params end |
Instance Attribute Details
#brightcove_video ⇒ Object (readonly)
Returns the value of attribute brightcove_video.
7 8 9 |
# File 'lib/brightcove_service/video.rb', line 7 def brightcove_video @brightcove_video end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/brightcove_service/video.rb', line 7 def params @params end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
7 8 9 |
# File 'lib/brightcove_service/video.rb', line 7 def result @result end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/brightcove_service/video.rb', line 14 def call valid? && create_videos_on_brightcove && set_result rescue StandardError => e add_error(e) end |