Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to get information about class #72

Merged
merged 6 commits into from
Jun 16, 2023
Merged

Conversation

afuno
Copy link
Member

@afuno afuno commented Jun 15, 2023

class BuildFullName < ApplicationService::Base
  input :first_name, type: String
  input :middle_name, type: String, required: false
  input :last_name, type: String

  internal :prepared_full_name, type: String

  output :full_name, type: String

  # ...
end
BuildFullName.info

# => <Servactory::Info::Result:0x00000001118c7078 @inputs=[:first_name, :middle_name, :last_name], @internals=[:prepared_full_name], @outputs=[:full_name]>
BuildFullName.info.inputs

# => [:first_name, :middle_name, :last_name]
BuildFullName.info.internals

# => [:prepared_full_name]
BuildFullName.info.outputs

# => [:full_name]

@afuno afuno added the feature label Jun 15, 2023
@afuno afuno self-assigned this Jun 15, 2023
@vercel
Copy link

vercel bot commented Jun 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
servactory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 16, 2023 3:06pm

@afuno afuno marked this pull request as ready for review June 15, 2023 15:02
@vercel vercel bot temporarily deployed to Preview June 15, 2023 15:02 Inactive
@vercel vercel bot temporarily deployed to Preview June 15, 2023 21:12 Inactive
@vercel vercel bot temporarily deployed to Preview June 16, 2023 13:07 Inactive
…res/attributes_outside

# Conflicts:
#	website/docs/usage/call.md
#	website/i18n/ru/docusaurus-plugin-content-docs/current/usage/call.md
@vercel vercel bot temporarily deployed to Preview June 16, 2023 15:06 Inactive
@afuno afuno merged commit 206b866 into main Jun 16, 2023
7 checks passed
@afuno afuno deleted the features/attributes_outside branch June 16, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants