Class: Eclix::Publication
- Inherits:
-
Object
- Object
- Eclix::Publication
- Defined in:
- lib/eclix/domain.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#publisher ⇒ Object
readonly
Returns the value of attribute publisher.
Instance Method Summary collapse
-
#initialize(name, publisher = 'Escenic', password = 'admin', context = name) ⇒ Publication
constructor
A new instance of Publication.
- #static(path) ⇒ Object
- #template(path) ⇒ Object
Constructor Details
#initialize(name, publisher = 'Escenic', password = 'admin', context = name) ⇒ Publication
Returns a new instance of Publication.
4 5 6 7 8 9 10 |
# File 'lib/eclix/domain.rb', line 4 def initialize(name,publisher='Escenic',password='admin',context=name) @name = name @publisher=publisher @password=password @context=context @context||=name end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/eclix/domain.rb', line 3 def context @context end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/eclix/domain.rb', line 3 def name @name end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
3 4 5 |
# File 'lib/eclix/domain.rb', line 3 def password @password end |
#publisher ⇒ Object (readonly)
Returns the value of attribute publisher.
3 4 5 |
# File 'lib/eclix/domain.rb', line 3 def publisher @publisher end |
Instance Method Details
#static(path) ⇒ Object
14 15 16 |
# File 'lib/eclix/domain.rb', line 14 def static(path) path+"static" end |
#template(path) ⇒ Object
11 12 13 |
# File 'lib/eclix/domain.rb', line 11 def template(path) path+"template" end |