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.



72
73
74
75
76
# File 'lib/amazon/aws.rb', line 72

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.



70
71
72
# File 'lib/amazon/aws.rb', line 70

def host
  @host
end

#pathObject (readonly)

Returns the value of attribute path.



70
71
72
# File 'lib/amazon/aws.rb', line 70

def path
  @path
end