Class: Tzispa::Commands::Rig
- Defined in:
- lib/tzispa/commands/rig.rb
Constant Summary
Constants inherited from Command
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#mime_format ⇒ Object
readonly
Returns the value of attribute mime_format.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(name, app, type, options = nil) ⇒ Rig
constructor
A new instance of Rig.
Constructor Details
#initialize(name, app, type, options = nil) ⇒ Rig
Returns a new instance of Rig.
11 12 13 14 15 16 |
# File 'lib/tzispa/commands/rig.rb', line 11 def initialize(name, app, type, = nil) super() @domain = Tzispa::Domain.new app @type = type.to_sym @name = name end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
9 10 11 |
# File 'lib/tzispa/commands/rig.rb', line 9 def domain @domain end |
#mime_format ⇒ Object (readonly)
Returns the value of attribute mime_format.
9 10 11 |
# File 'lib/tzispa/commands/rig.rb', line 9 def mime_format @mime_format end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/tzispa/commands/rig.rb', line 9 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/tzispa/commands/rig.rb', line 9 def type @type end |
Instance Method Details
#generate ⇒ Object
18 19 20 21 22 23 |
# File 'lib/tzispa/commands/rig.rb', line 18 def generate Tzispa::Rig::Template.new(name: name, type: type, domain: domain, content_type: :htm).create end |