Class: Itunes::Transporter::VersionScreenshot

Inherits:
Struct
  • Object
show all
Includes:
MetadataImage
Defined in:
lib/itunes/transporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MetadataImage

#friendly_filename, #normalized_source_filename

Instance Attribute Details

#display_targetObject

Returns the value of attribute display_target

Returns:

  • (Object)

    the current value of display_target



81
82
83
# File 'lib/itunes/transporter.rb', line 81

def display_target
  @display_target
end

#file_nameObject

Returns the value of attribute file_name

Returns:

  • (Object)

    the current value of file_name



81
82
83
# File 'lib/itunes/transporter.rb', line 81

def file_name
  @file_name
end

#locale_nameObject

Returns the value of attribute locale_name

Returns:

  • (Object)

    the current value of locale_name



81
82
83
# File 'lib/itunes/transporter.rb', line 81

def locale_name
  @locale_name
end

#positionObject

Returns the value of attribute position

Returns:

  • (Object)

    the current value of 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_sObject



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