Class: Ellipses::Server::Application::Instance

Inherits:
Struct
  • Object
show all
Defined in:
lib/ellipses/server/application.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



8
9
10
# File 'lib/ellipses/server/application.rb', line 8

def port
  @port
end

#repositoryObject

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository



8
9
10
# File 'lib/ellipses/server/application.rb', line 8

def repository
  @repository
end

#uriObject

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



8
9
10
# File 'lib/ellipses/server/application.rb', line 8

def uri
  @uri
end

Class Method Details

.ident(uri, port) ⇒ Object



14
15
16
# File 'lib/ellipses/server/application.rb', line 14

def ident(uri, port)
  "#{uri}:#{port || DEFAULT_PORT}"
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/ellipses/server/application.rb', line 9

def to_s
  self.class.ident(uri, port)
end