Module: JSONAPI::Consumer::Resource::ClassMethods
- Defined in:
- lib/jsonapi/consumer/resource.rb
Instance Method Summary collapse
Instance Method Details
#host ⇒ Object
28 29 30 |
# File 'lib/jsonapi/consumer/resource.rb', line 28 def host @host || raise(NotImplementedError, 'host was not set') end |
#json_key ⇒ Object
24 25 26 |
# File 'lib/jsonapi/consumer/resource.rb', line 24 def json_key self.name.demodulize.pluralize.underscore end |
#middleware(&block) ⇒ Object
20 21 22 |
# File 'lib/jsonapi/consumer/resource.rb', line 20 def middleware(&block) _connection(true, &block) end |
#path ⇒ Object
32 33 34 |
# File 'lib/jsonapi/consumer/resource.rb', line 32 def path json_key end |
#ssl ⇒ Object
36 37 38 |
# File 'lib/jsonapi/consumer/resource.rb', line 36 def ssl {} end |