class Poisol::Domain

Attributes

file[R]
full_url[R]

Public Class Methods

new(domain_config_file) click to toggle source
# File lib/poisol/domain.rb, line 5
def initialize domain_config_file
  @file = domain_config_file
  path = ""
  if File.exists? @file
    base_hash = Parse.yaml_file @file
    sub_domain  = base_hash["sub_domain"]
    path = "/#{sub_domain}" if sub_domain.present?
  end
  @full_url = "#{ path.present? ? path: ''}"
end