Class: Eclix::Escenic
- Inherits:
-
Object
- Object
- Eclix::Escenic
- Defined in:
- lib/eclix/publication_creator.rb
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
- #admin_url ⇒ Object
-
#initialize(server = Server.new) ⇒ Escenic
constructor
A new instance of Escenic.
- #publication_url(publication) ⇒ Object
- #publish_url ⇒ Object
- #resource_url ⇒ Object
Constructor Details
#initialize(server = Server.new) ⇒ Escenic
Returns a new instance of Escenic.
114 115 116 |
# File 'lib/eclix/publication_creator.rb', line 114 def initialize(server=Server.new) @server=server end |
Instance Attribute Details
#server ⇒ Object (readonly)
Returns the value of attribute server.
113 114 115 |
# File 'lib/eclix/publication_creator.rb', line 113 def server @server end |
Instance Method Details
#admin_url ⇒ Object
125 126 127 |
# File 'lib/eclix/publication_creator.rb', line 125 def admin_url Url.new(server, 'escenic-admin') end |
#publication_url(publication) ⇒ Object
129 130 131 |
# File 'lib/eclix/publication_creator.rb', line 129 def publication_url(publication) Url.new(server, "#{publication.context}/") end |