Class: Iqy

Inherits:
Object
  • Object
show all
Defined in:
lib/excel-data/iqy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_url) ⇒ Iqy

Returns a new instance of Iqy.



3
4
5
# File 'lib/excel-data/iqy.rb', line 3

def initialize(base_url)
  @base_url = base_url
end

Instance Attribute Details

#base_urlObject

Returns the value of attribute base_url.



2
3
4
# File 'lib/excel-data/iqy.rb', line 2

def base_url
  @base_url
end

Instance Method Details

#iqy_file(params, path) ⇒ Object



10
11
12
# File 'lib/excel-data/iqy.rb', line 10

def iqy_file(params,path)
  start_iqy+iqy_url(params,path)+end_iqy
end

#iqy_url(params, path) ⇒ Object



6
7
8
# File 'lib/excel-data/iqy.rb', line 6

def iqy_url(params,path)
  @base_url+path+params.to_excel_param
end