Class: Eclix::Escenic

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#serverObject (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_urlObject



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

#publish_urlObject



121
122
123
# File 'lib/eclix/publication_creator.rb', line 121

def publish_url
  Url.new(server, 'escenic-admin/do/publication/insert')
end

#resource_urlObject



117
118
119
# File 'lib/eclix/publication_creator.rb', line 117

def resource_url
  Url.new(server, 'escenic-admin/do/publication/resource')
end