Class: Postwill::Providers::Base
- Inherits:
-
Object
- Object
- Postwill::Providers::Base
- Defined in:
- lib/postwill/providers/base.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/postwill/providers/base.rb', line 4 def client @client end |
Instance Method Details
#call(options = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/postwill/providers/base.rb', line 6 def call( = {}) Dry::Monads::Right(post()) rescue Exception => error Dry::Monads::Left(error) end |