Class: AudioFeedManager::AudioFile
- Inherits:
-
Struct
- Object
- Struct
- AudioFeedManager::AudioFile
- Includes:
- HashConstructor
- Defined in:
- lib/audio_feed_manager/audio_file.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#extension ⇒ Object
Returns the value of attribute extension.
-
#id ⇒ Object
Returns the value of attribute id.
-
#secret_token ⇒ Object
Returns the value of attribute secret_token.
-
#size ⇒ Object
Returns the value of attribute size.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Methods included from HashConstructor
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author
2 3 4 |
# File 'lib/audio_feed_manager/audio_file.rb', line 2 def @author end |
#content_type ⇒ Object
Returns the value of attribute content_type
2 3 4 |
# File 'lib/audio_feed_manager/audio_file.rb', line 2 def content_type @content_type end |
#extension ⇒ Object
Returns the value of attribute extension
2 3 4 |
# File 'lib/audio_feed_manager/audio_file.rb', line 2 def extension @extension end |
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/audio_feed_manager/audio_file.rb', line 2 def id @id end |
#secret_token ⇒ Object
Returns the value of attribute secret_token
2 3 4 |
# File 'lib/audio_feed_manager/audio_file.rb', line 2 def secret_token @secret_token end |
#size ⇒ Object
Returns the value of attribute size
2 3 4 |
# File 'lib/audio_feed_manager/audio_file.rb', line 2 def size @size end |
#title ⇒ Object
Returns the value of attribute title
2 3 4 |
# File 'lib/audio_feed_manager/audio_file.rb', line 2 def title @title end |
Instance Method Details
#file_name ⇒ Object
5 6 7 |
# File 'lib/audio_feed_manager/audio_file.rb', line 5 def file_name "#{secret_token}#{extension}" end |