Class: Steam::Web::Api::VanityUrl
- Inherits:
-
Object
- Object
- Steam::Web::Api::VanityUrl
- Defined in:
- lib/steam/web/api/vanity_url.rb
Instance Method Summary collapse
-
#initialize(url) ⇒ VanityUrl
constructor
A new instance of VanityUrl.
- #url ⇒ Object
Constructor Details
#initialize(url) ⇒ VanityUrl
Returns a new instance of VanityUrl.
6 7 8 |
# File 'lib/steam/web/api/vanity_url.rb', line 6 def initialize(url) @vanity = url end |
Instance Method Details
#url ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/steam/web/api/vanity_url.rb', line 10 def url if url? @vanity.split('/').last else @vanity end end |