Class: Itunes::Transporter::AchievementImage
- Inherits:
-
Struct
- Object
- Struct
- Itunes::Transporter::AchievementImage
- Includes:
- MetadataImage
- Defined in:
- lib/itunes/transporter.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
Methods included from MetadataImage
#friendly_filename, #normalized_source_filename
Instance Attribute Details
#file_name ⇒ Object
Returns the value of attribute file_name
97 98 99 |
# File 'lib/itunes/transporter.rb', line 97 def file_name @file_name end |
#id ⇒ Object
Returns the value of attribute id
97 98 99 |
# File 'lib/itunes/transporter.rb', line 97 def id @id end |
Instance Method Details
#normalized_filename(include_prefix) ⇒ Object
104 105 106 107 108 109 110 |
# File 'lib/itunes/transporter.rb', line 104 def normalized_filename(include_prefix) if include_prefix "achievement_#{friendly_filename(id)}_#{normalized_source_filename}" else "#{normalized_source_filename}" end end |
#to_s ⇒ Object
100 101 102 |
# File 'lib/itunes/transporter.rb', line 100 def to_s "achievement #{self.id} - #{self.file_name}" end |