Class: Eclix::Publication

Inherits:
Object
  • Object
show all
Defined in:
lib/eclix/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (readonly)

Returns the value of attribute context.



3
4
5
# File 'lib/eclix/domain.rb', line 3

def context
  @context
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/eclix/domain.rb', line 3

def name
  @name
end

#passwordObject (readonly)

Returns the value of attribute password.



3
4
5
# File 'lib/eclix/domain.rb', line 3

def password
  @password
end

#publisherObject (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