Class: Itunes::Transporter::VersionScreenshot
- Inherits:
-
Struct
- Object
- Struct
- Itunes::Transporter::VersionScreenshot
- Includes:
- MetadataImage
- Defined in:
- lib/itunes/transporter.rb
Instance Attribute Summary collapse
-
#display_target ⇒ Object
Returns the value of attribute display_target.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#locale_name ⇒ Object
Returns the value of attribute locale_name.
-
#position ⇒ Object
Returns the value of attribute position.
Instance Method Summary collapse
Methods included from MetadataImage
#friendly_filename, #normalized_source_filename
Instance Attribute Details
#display_target ⇒ Object
Returns the value of attribute display_target
81 82 83 |
# File 'lib/itunes/transporter.rb', line 81 def display_target @display_target end |
#file_name ⇒ Object
Returns the value of attribute file_name
81 82 83 |
# File 'lib/itunes/transporter.rb', line 81 def file_name @file_name end |
#locale_name ⇒ Object
Returns the value of attribute locale_name
81 82 83 |
# File 'lib/itunes/transporter.rb', line 81 def locale_name @locale_name end |
#position ⇒ Object
Returns the value of attribute position
81 82 83 |
# File 'lib/itunes/transporter.rb', line 81 def position @position end |
Instance Method Details
#normalized_filename(include_prefix) ⇒ Object
88 89 90 91 92 93 94 |
# File 'lib/itunes/transporter.rb', line 88 def normalized_filename(include_prefix) if include_prefix "#{self.locale_name}_#{self.position}_#{self.display_target}_#{normalized_source_filename}" else "#{normalized_source_filename}" end end |
#to_s ⇒ Object
84 85 86 |
# File 'lib/itunes/transporter.rb', line 84 def to_s "#{self.locale_name} - (#{self.position}) #{self.display_target} - #{self.file_name}" end |