Class: AzureSTT::Models::File

Inherits:
Base
  • Object
show all
Defined in:
lib/azure_stt/models/file.rb

Overview

Model class to represent files in our models

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientAzureSTT::Client (readonly)

Returns:



60
# File 'lib/azure_stt/models/file.rb', line 60

attribute :client, Types.Instance(AzureSTT::Client)

#content_urlTypes::Coercible::String (readonly)

Returns:

  • (Types::Coercible::String)


53
# File 'lib/azure_stt/models/file.rb', line 53

attribute :content_url, Types::Coercible::String

#created_date_timeTypes::Date (readonly)

Returns:

  • (Types::Date)


45
# File 'lib/azure_stt/models/file.rb', line 45

attribute :created_date_time, Types::Date

#idTypes::Coercible::String (readonly)

Returns:

  • (Types::Coercible::String)


16
# File 'lib/azure_stt/models/file.rb', line 16

attribute :id, Types::Coercible::String

#kindTypes::Coercible::String (readonly)

Returns:

  • (Types::Coercible::String)


31
# File 'lib/azure_stt/models/file.rb', line 31

attribute :kind, Types::Coercible::String

#nameTypes::Coercible::String (readonly)

Returns:

  • (Types::Coercible::String)


23
# File 'lib/azure_stt/models/file.rb', line 23

attribute :name, Types::Coercible::String

#propertiesTypes::Coercible::Hash (readonly)

Returns:

  • (Types::Coercible::Hash)


38
# File 'lib/azure_stt/models/file.rb', line 38

attribute :properties, Types::Coercible::Hash

Instance Method Details

#contentHash

Returns the result of the request to the file with the url content_url

Returns:

  • (Hash)


67
68
69
# File 'lib/azure_stt/models/file.rb', line 67

def content
  client.get_file(content_url)
end