Class: AudioFeedManager::AudioFile

Inherits:
Struct
  • Object
show all
Includes:
HashConstructor
Defined in:
lib/audio_feed_manager/audio_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashConstructor

#initialize

Instance Attribute Details

#authorObject

Returns the value of attribute author

Returns:

  • (Object)

    the current value of author



2
3
4
# File 'lib/audio_feed_manager/audio_file.rb', line 2

def author
  @author
end

#content_typeObject

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



2
3
4
# File 'lib/audio_feed_manager/audio_file.rb', line 2

def content_type
  @content_type
end

#extensionObject

Returns the value of attribute extension

Returns:

  • (Object)

    the current value of extension



2
3
4
# File 'lib/audio_feed_manager/audio_file.rb', line 2

def extension
  @extension
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/audio_feed_manager/audio_file.rb', line 2

def id
  @id
end

#secret_tokenObject

Returns the value of attribute secret_token

Returns:

  • (Object)

    the current value of secret_token



2
3
4
# File 'lib/audio_feed_manager/audio_file.rb', line 2

def secret_token
  @secret_token
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



2
3
4
# File 'lib/audio_feed_manager/audio_file.rb', line 2

def size
  @size
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



2
3
4
# File 'lib/audio_feed_manager/audio_file.rb', line 2

def title
  @title
end

Instance Method Details

#file_nameObject



5
6
7
# File 'lib/audio_feed_manager/audio_file.rb', line 5

def file_name
  "#{secret_token}#{extension}"
end