Class: Steam::Web::Api::VanityUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/steam/web/api/vanity_url.rb

Instance Method Summary collapse

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

#urlObject



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