Class: PlentyClient::Config
- Inherits:
-
Object
- Object
- PlentyClient::Config
- Defined in:
- lib/plenty_client/config.rb
Defined Under Namespace
Classes: NoCredentials, NoPlentyId, NoToken
Class Attribute Summary collapse
-
.access_token ⇒ Object
Returns the value of attribute access_token.
-
.api_password ⇒ Object
Returns the value of attribute api_password.
-
.api_user ⇒ Object
Returns the value of attribute api_user.
-
.expiry_date ⇒ Object
Returns the value of attribute expiry_date.
-
.log ⇒ Object
Returns the value of attribute log.
-
.plenty_id ⇒ Object
Returns the value of attribute plenty_id.
-
.refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
.site_url ⇒ Object
Returns the value of attribute site_url.
Class Method Summary collapse
Class Attribute Details
.access_token ⇒ Object
Returns the value of attribute access_token.
8 9 10 |
# File 'lib/plenty_client/config.rb', line 8 def access_token @access_token end |
.api_password ⇒ Object
Returns the value of attribute api_password.
8 9 10 |
# File 'lib/plenty_client/config.rb', line 8 def api_password @api_password end |
.api_user ⇒ Object
Returns the value of attribute api_user.
8 9 10 |
# File 'lib/plenty_client/config.rb', line 8 def api_user @api_user end |
.expiry_date ⇒ Object
Returns the value of attribute expiry_date.
8 9 10 |
# File 'lib/plenty_client/config.rb', line 8 def expiry_date @expiry_date end |
.log ⇒ Object
Returns the value of attribute log.
8 9 10 |
# File 'lib/plenty_client/config.rb', line 8 def log @log end |
.plenty_id ⇒ Object
Returns the value of attribute plenty_id.
8 9 10 |
# File 'lib/plenty_client/config.rb', line 8 def plenty_id @plenty_id end |
.refresh_token ⇒ Object
Returns the value of attribute refresh_token.
8 9 10 |
# File 'lib/plenty_client/config.rb', line 8 def refresh_token @refresh_token end |
.site_url ⇒ Object
Returns the value of attribute site_url.
8 9 10 |
# File 'lib/plenty_client/config.rb', line 8 def site_url @site_url end |
Class Method Details
.validate ⇒ Object
10 11 12 13 14 |
# File 'lib/plenty_client/config.rb', line 10 def validate raise NoCredentials if site_url.nil? || api_user.nil? || api_password.nil? raise NoToken if access_token.nil? || refresh_token.nil? raise NoPlentyId if plenty_id.blank? end |