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.



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

def options
  @options
end

Class Method Details

.option(*args) ⇒ Object



88
89
90
91
# File 'lib/restforce/config.rb', line 88

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

Instance Method Details

#optionsObject



168
169
170
# File 'lib/restforce/config.rb', line 168

def options
  self.class.options
end