Class: Itunes::Transporter::IAPReviewImage

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

#file_nameObject

Returns the value of attribute file_name

Returns:

  • (Object)

    the current value of file_name



129
130
131
# File 'lib/itunes/transporter.rb', line 129

def file_name
  @file_name
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



129
130
131
# File 'lib/itunes/transporter.rb', line 129

def id
  @id
end

Instance Method Details

#normalized_filename(include_prefix) ⇒ Object



136
137
138
139
140
141
142
# File 'lib/itunes/transporter.rb', line 136

def normalized_filename(include_prefix)
  if include_prefix
    "iap_#{friendly_filename(id)}_#{normalized_source_filename}"
  else
      "#{normalized_source_filename}"
  end
end

#to_sObject



132
133
134
# File 'lib/itunes/transporter.rb', line 132

def to_s
  "iap #{self.id} - #{self.file_name}"
end