Class: Highrise::Base

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/highrise/base.rb

Class Method Summary collapse

Class Method Details

.url_for(n) ⇒ Object



8
9
10
11
# File 'lib/highrise/base.rb', line 8

def self.url_for(n)
  base  = site.to_s.split('@')[1]
  File.join('https://', base, element_path(n)).gsub(".xml",'')
end