Class: SugarcrmRest::Connect

Inherits:
Object
  • Object
show all
Defined in:
lib/sugarcrm_rest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(consumer_key, consumer_secret, username, password, platform, url) ⇒ Connect

Returns a new instance of Connect.



13
14
15
16
17
18
19
20
# File 'lib/sugarcrm_rest.rb', line 13

def initialize(consumer_key,consumer_secret,username,password,platform,url)
@consumer_key=consumer_key
@consumer_secret=consumer_secret
@username=username
@password=password
@platform=platform
@url=url
end

Instance Attribute Details

#consumer_keyObject (readonly)

Returns the value of attribute consumer_key.



12
13
14
# File 'lib/sugarcrm_rest.rb', line 12

def consumer_key
  @consumer_key
end

#consumer_secretObject (readonly)

Returns the value of attribute consumer_secret.



12
13
14
# File 'lib/sugarcrm_rest.rb', line 12

def consumer_secret
  @consumer_secret
end

#passwordObject (readonly)

Returns the value of attribute password.



12
13
14
# File 'lib/sugarcrm_rest.rb', line 12

def password
  @password
end

#platformObject (readonly)

Returns the value of attribute platform.



12
13
14
# File 'lib/sugarcrm_rest.rb', line 12

def platform
  @platform
end

#urlObject (readonly)

Returns the value of attribute url.



12
13
14
# File 'lib/sugarcrm_rest.rb', line 12

def url
  @url
end

#usernameObject (readonly)

Returns the value of attribute username.



12
13
14
# File 'lib/sugarcrm_rest.rb', line 12

def username
  @username
end