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

#client ⇒ AzureSTT::Client (readonly)

Returns:



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

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

#content_url ⇒ Types::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_time ⇒ Types::Date (readonly)

Returns:

  • (Types::Date)


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

attribute :created_date_time, Types::Date

#id ⇒ Types::Coercible::String (readonly)

Returns:

  • (Types::Coercible::String)


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

attribute :id, Types::Coercible::String

#kind ⇒ Types::Coercible::String (readonly)

Returns:

  • (Types::Coercible::String)


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

attribute :kind, Types::Coercible::String

#name ⇒ Types::Coercible::String (readonly)

Returns:

  • (Types::Coercible::String)


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

attribute :name, Types::Coercible::String

#properties ⇒ Types::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

#content ⇒ Hash

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