Class: Restforce::Configuration

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

Defined Under Namespace

Classes: Option

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.optionsObject

Returns the value of attribute options.



83
84
85
# File 'lib/restforce/config.rb', line 83

def options
  @options
end

Class Method Details

.option(*args) ⇒ Object



85
86
87
88
# File 'lib/restforce/config.rb', line 85

def option(*args)
  option = Option.define(self, *args)
  (self.options ||= []) << option.name
end

Instance Method Details

#optionsObject



150
151
152
# File 'lib/restforce/config.rb', line 150

def options
  self.class.options
end