Class: Wes::Data::API::Model::TagVideoVersion

Inherits:
Base
  • Object
show all
Defined in:
lib/wes/data/api/model/tag_video_version.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

#exist?, #id, #initialize

Constructor Details

This class inherits a constructor from Wes::Data::API::Model::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Wes::Data::API::Model::Base

Instance Method Details

#clarifai_metadataObject



13
14
15
16
17
18
19
# File 'lib/wes/data/api/model/tag_video_version.rb', line 13

def 
  return nil unless @attributes.
  JSON.parse(
    @attributes.,
    symbolize_names: true
  )
end

#tagObject



9
10
11
# File 'lib/wes/data/api/model/tag_video_version.rb', line 9

def tag
  Wes::Data::API::Model::Tag.new(@attributes.tag.first)
end