Class: Amazon::AWS::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/amazon/aws.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint) ⇒ Endpoint

Returns a new instance of Endpoint.



90
91
92
93
94
# File 'lib/amazon/aws.rb', line 90

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.



88
89
90
# File 'lib/amazon/aws.rb', line 88

def host
  @host
end

#pathObject (readonly)

Returns the value of attribute path.



88
89
90
# File 'lib/amazon/aws.rb', line 88

def path
  @path
end