README.md in calendlyr-0.3.5 vs README.md in calendlyr-0.3.6

- old
+ new

@@ -1,7 +1,7 @@ [![](https://img.shields.io/github/license/araluce/calendlyr)](https://github.com/araluce/calendlyr/blob/master/LICENSE.txt) -![](https://github.com/araluce/calendlyr/actions/workflows/ci.yml/badge.svg) +[![](https://github.com/araluce/calendlyr/actions/workflows/ci.yml/badge.svg)](https://github.com/araluce/calendlyr/actions) [![codecov](https://codecov.io/gh/araluce/calendlyr/branch/master/graph/badge.svg?token=YSUU4PHM6Y)](https://codecov.io/gh/araluce/calendlyr) [![Gem Version](https://badge.fury.io/rb/calendlyr.svg)](https://badge.fury.io/rb/calendlyr) # Calendly API Rubygem LITE version @@ -82,10 +82,21 @@ client.me.memberships #=> Calendlyr::Collection @data=[#<Calendlyr::MemberShip>, #<Calendlyr::MemberShip>] ``` +#### Me (Cached) + +Probably you need to make many calls through `client.me`, so we decided to not make calls for every `client.me` reference by caching it the first time. However, if you need to reload the content of `me` you can `force_relaod` to force a new call. + +```ruby +client.me # makes a call and caches the response +client.me # no call, value cached +client.me(force_reload: true) # makes a new call and update cache value +``` + + ### Event Types ````ruby client.event_types.list user_uri: "user_uri", organization_uri: "organization_uri" client.event_types.retrieve event_type_uuid: "id" ```` @@ -116,11 +127,11 @@ client.organizations.list_invitations(organization_uuid: "organization_uuid") client.organization.list_invitations # Get invitation client.organizations.retrieve_invitation(organization_uuid: "organization_uuid", invitation_uuid: "invitation_uuid") client.organization.invitation(invitation_uuid: "invitation_uuid") -#Revoke invitation +# Revoke invitation client.organizations.revoke_invitation(organization_uuid: "organization_uuid", invitation_uuid: "organization_uuid") client.organization.revoke_invitation(invitation_uuid: "organization_uuid") invitation = client.organization.invitation(invitation_uuid: "invitation_uuid") invitation.revoke @@ -157,7 +168,9 @@ 5. Create a new Pull Request When adding resources, add to the list of resources in lib/calendlyr. Additionally, write a spec and add it to the list in the README. ## Thanks + +Many thanks [@markets](https://github.com/markets) for all comments, details and tips for this rubygem project and for made me grow professionally in my day by day :raised_hands: Thanks [@excid3](https://github.com/excid3) and his [Vultr.rb](https://github.com/excid3/vultr.rb) rubygem project. \ No newline at end of file