Class: IronBank::Action
- Inherits:
-
Object
- Object
- IronBank::Action
- Defined in:
- lib/iron_bank/action.rb
Overview
Base class for Zuora actions, e.g., subscribe
Direct Known Subclasses
IronBank::Actions::Amend, IronBank::Actions::Create, IronBank::Actions::Delete, IronBank::Actions::Execute, IronBank::Actions::Generate, IronBank::Actions::Query, IronBank::Actions::QueryMore, IronBank::Actions::Subscribe, IronBank::Actions::Update
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(args) ⇒ Object
9 10 11 |
# File 'lib/iron_bank/action.rb', line 9 def self.call(args) new(args).call end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/iron_bank/action.rb', line 13 def call @body = IronBank.client.connection.post(endpoint, params).body raise ::IronBank::UnprocessableEntityError, errors unless success? IronBank::Object.new(body).deep_underscore end |