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.



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

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.



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

def host
  @host
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end