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.



83
84
85
86
87
# File 'lib/amazon/aws.rb', line 83

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.



81
82
83
# File 'lib/amazon/aws.rb', line 81

def host
  @host
end

#pathObject (readonly)

Returns the value of attribute path.



81
82
83
# File 'lib/amazon/aws.rb', line 81

def path
  @path
end