Class: Amazon::AWS::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-paa/aws.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint) ⇒ Endpoint

Returns a new instance of Endpoint.



95
96
97
98
99
# File 'lib/ruby-paa/aws.rb', line 95

def initialize(endpoint)
	uri = URI.parse( endpoint )
	@host = uri.host
	@path = uri.path
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



93
94
95
# File 'lib/ruby-paa/aws.rb', line 93

def host
  @host
end

#pathObject (readonly)

Returns the value of attribute path.



93
94
95
# File 'lib/ruby-paa/aws.rb', line 93

def path
  @path
end