Class: Io::Flow::V0::Clients::ChannelOrganizationAuthorizations
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::ChannelOrganizationAuthorizations
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ ChannelOrganizationAuthorizations
constructor
A new instance of ChannelOrganizationAuthorizations.
- #post(channel_organization_authorization_form) ⇒ Object
Constructor Details
#initialize(client) ⇒ ChannelOrganizationAuthorizations
Returns a new instance of ChannelOrganizationAuthorizations.
5993 5994 5995 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5993 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#post(channel_organization_authorization_form) ⇒ Object
5997 5998 5999 6000 6001 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5997 def post() (x = ; x.is_a?(::Io::Flow::V0::Models::ChannelOrganizationAuthorizationForm) ? x : ::Io::Flow::V0::Models::ChannelOrganizationAuthorizationForm.new(x)) r = @client.request("/channel/organization/authorizations").with_json(.to_json).post ::Io::Flow::V0::Models::ChannelOrganizationAuthorization.new(r) end |