Class: LcApi::Base
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- LcApi::Base
- Defined in:
- lib/lc_api/base.rb
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
Class Method Summary collapse
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/lc_api/base.rb', line 6 def api_key @api_key end |
Class Method Details
.find(*args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/lc_api/base.rb', line 9 def self.find(*args) scope = args.slice!(0) = args.slice!(0) || {} [:params] = ([:params] || {}).merge({include: [:include].join(",")}) if .has_key? :include [:params] = ([:params] || {}).merge({type: [:type]}) if .has_key? :type [:params] = ([:params] || {}).merge({key: LcApi.key}) super(scope, ) end |