Class: SmartlingApi::Configuration

Inherits:
Struct
  • Object
show all
Defined in:
lib/smartling_api/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/smartling_api/configuration.rb', line 2

def id
  @id
end

#project_idObject

Returns the value of attribute project_id

Returns:

  • (Object)

    the current value of project_id



2
3
4
# File 'lib/smartling_api/configuration.rb', line 2

def project_id
  @project_id
end

#secretObject

Returns the value of attribute secret

Returns:

  • (Object)

    the current value of secret



2
3
4
# File 'lib/smartling_api/configuration.rb', line 2

def secret
  @secret
end

Instance Method Details

#invalid?Boolean

Check if id and secrets have been set

Returns:

  • (Boolean)


6
7
8
# File 'lib/smartling_api/configuration.rb', line 6

def invalid?
  id.nil? || secret.nil?
end