Class: SnoozeForce::Base
- Inherits:
-
Object
- Object
- SnoozeForce::Base
- Defined in:
- lib/snooze_force/base.rb
Class Attribute Summary collapse
-
.sobject ⇒ Object
Returns the value of attribute sobject.
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#client ⇒ Object
Returns the value of attribute client.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #_describe ⇒ Object
- #_fields ⇒ Object
- #_sobject ⇒ Object
-
#initialize(client, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(client, options = {}) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 |
# File 'lib/snooze_force/base.rb', line 12 def initialize(client, = {}) self.client = client self. = {:base => ''}.merge() self.base = self.[:base] end |
Class Attribute Details
.sobject ⇒ Object
Returns the value of attribute sobject.
9 10 11 |
# File 'lib/snooze_force/base.rb', line 9 def sobject @sobject end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
6 7 8 |
# File 'lib/snooze_force/base.rb', line 6 def base @base end |
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/snooze_force/base.rb', line 4 def client @client end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/snooze_force/base.rb', line 5 def @options end |
Instance Method Details
#_describe ⇒ Object
25 26 27 28 29 30 |
# File 'lib/snooze_force/base.rb', line 25 def _describe unless @_describe @_describe = self.get('describe') end return @_describe end |
#_fields ⇒ Object
32 33 34 |
# File 'lib/snooze_force/base.rb', line 32 def _fields self._describe['fields'] end |
#_sobject ⇒ Object
36 37 38 |
# File 'lib/snooze_force/base.rb', line 36 def _sobject self.class.sobject end |