Class: Amazon::AWS::Endpoint
- Inherits:
-
Object
- Object
- Amazon::AWS::Endpoint
- Defined in:
- lib/amazon/aws.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(endpoint) ⇒ Endpoint
constructor
A new instance of Endpoint.
Constructor Details
#initialize(endpoint) ⇒ Endpoint
Returns a new instance of Endpoint.
95 96 97 98 99 |
# File 'lib/amazon/aws.rb', line 95 def initialize(endpoint) uri = URI.parse( endpoint ) @host = uri.host @path = uri.path end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
93 94 95 |
# File 'lib/amazon/aws.rb', line 93 def host @host end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
93 94 95 |
# File 'lib/amazon/aws.rb', line 93 def path @path end |