lib/hyper_resource/modules/internal_attributes.rb in hyperresource-0.2.1 vs lib/hyper_resource/modules/internal_attributes.rb in hyperresource-0.2.2
- old
+ new
@@ -23,20 +23,22 @@
def _hr_class_attributes # @private
[ :root, ## e.g. 'https://example.com/api/v1'
:auth, ## e.g. {:basic => ['username', 'password']}
:headers, ## e.g. {'Accept' => 'application/vnd.example+json'}
:namespace, ## e.g. 'ExampleAPI', or the class ExampleAPI itself
- :adapter ## subclass of HR::Adapter
+ :adapter, ## subclass of HR::Adapter
+ :faraday_options ## e.g. {:request => {:timeout => 30}}
]
end
def _hr_attributes # @private
[ :root,
:href,
:auth,
:headers,
:namespace,
:adapter,
+ :faraday_options,
:request,
:response,
:body,