Class: ITunes::Store::Transporter::Command::Schema

Inherits:
Mode
  • Object
show all
Defined in:
lib/itunes/store/transporter/command/schema.rb

Overview

Download a RelaxNG schema file for a particular metadata specification.

Constant Summary

Constants included from Option

Option::APPLE_ID, Option::DESTINATION, Option::FAILURE, Option::ITC_PROVIDER, Option::SHORTNAME, Option::SUCCESS, Option::TRANSPORT, Option::VENDOR_ID

Instance Method Summary collapse

Methods inherited from Base

#run

Constructor Details

#initialize(*config) ⇒ Schema

Returns a new instance of Schema.



13
14
15
16
17
18
19
20
21
# File 'lib/itunes/store/transporter/command/schema.rb', line 13

def initialize(*config)
  super
  options.on *SHORTNAME
  options.on *ITC_PROVIDER

  options.on *DESTINATION
  options.on :type, "-schemaType", /\A(transitional|strict)\z/i, :required => true
  options.on :version, "-schema", /\w+/i, :required => true
end