Module: Collmex

Defined in:
lib/collmex.rb,
lib/collmex/api.rb,
lib/collmex/api.rb,
lib/collmex/api.rb,
lib/collmex/request.rb

Defined Under Namespace

Modules: Api Classes: Request

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.customer_idObject

Returns the value of attribute customer_id.



8
9
10
# File 'lib/collmex.rb', line 8

def customer_id
  @customer_id
end

.passwordObject

Returns the value of attribute password.



8
9
10
# File 'lib/collmex.rb', line 8

def password
  @password
end

.usernameObject

Returns the value of attribute username.



8
9
10
# File 'lib/collmex.rb', line 8

def username
  @username
end

Class Method Details

.csv_optsObject



22
23
24
25
26
# File 'lib/collmex.rb', line 22

def csv_opts
  {
    :col_sep => ";"
  }
end

.reset_login_dataObject



16
17
18
19
20
# File 'lib/collmex.rb', line 16

def 
  Collmex.username    = nil
  Collmex.password    = nil
  Collmex.customer_id = nil
end

.setup_login_data(logindata) ⇒ Object



10
11
12
13
14
# File 'lib/collmex.rb', line 10

def (logindata)
  Collmex.username    = logindata[:username]
  Collmex.password    = logindata[:password]
  Collmex.customer_id = logindata[:customer_id]
end