hubspot-api-client 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/hubspot-api-client.rb +3 -2
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +94 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +0 -5
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +0 -5
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +226 -0
- data/lib/hubspot/codegen/crm/associations/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +19 -5
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/companies/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/companies/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/contacts/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/deals/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/deals/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +36 -36
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +8 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +6 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +7 -4
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +8 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +7 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +24 -4
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/line_items/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +22 -2
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +1 -6
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +6 -6
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +7 -7
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +22 -2
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/products/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/products/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/products/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +6 -6
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +6 -6
- data/lib/hubspot/codegen/crm/properties/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/properties/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/quotes/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +4 -4
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/tickets/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +6 -6
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +353 -0
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +362 -0
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +250 -0
- data/lib/hubspot/codegen/crm/{objects → timeline}/api_client.rb +6 -5
- data/lib/hubspot/codegen/crm/{objects → timeline}/api_error.rb +4 -4
- data/lib/hubspot/codegen/crm/{objects → timeline}/configuration.rb +6 -6
- data/lib/hubspot/codegen/crm/timeline/models/add_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +219 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_response_simple_public_object.rb → timeline/models/batch_response_timeline_event_response.rb} +17 -14
- data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +228 -0
- data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/contains.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/date.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/divide_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects → timeline}/models/error.rb +18 -8
- data/lib/hubspot/codegen/crm/{objects → timeline}/models/error_detail.rb +26 -29
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +217 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_input_simple_public_object_input.rb → timeline/models/has_email_reply.rb} +78 -15
- data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_or.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/filter.rb → timeline/models/month.rb} +36 -28
- data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_input_simple_public_object_id.rb → timeline/models/now.rb} +78 -15
- data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/pipeline_probability.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/public_object_search_request.rb → timeline/models/timeline_event.rb} +101 -69
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object_id.rb → timeline/models/timeline_event_i_frame.rb} +79 -18
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +342 -0
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object.rb → timeline/models/timeline_event_template.rb} +62 -56
- data/lib/hubspot/codegen/crm/{objects/models/batch_read_input_simple_public_object_id.rb → timeline/models/timeline_event_template_create_request.rb} +63 -36
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +328 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +229 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +244 -0
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object_batch_input.rb → timeline/models/timeline_event_template_update_request.rb} +57 -19
- data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/xor.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/year.rb +280 -0
- data/lib/hubspot/codegen/oauth/api/default_api.rb +270 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +3 -4
- data/lib/hubspot/codegen/oauth/configuration.rb +3 -3
- data/lib/hubspot/codegen/oauth/models/error.rb +14 -25
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +26 -6
- data/lib/hubspot/codegen/oauth/models/{refresh_token.rb → token_response_if.rb} +33 -47
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +214 -0
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +360 -0
- data/lib/hubspot/codegen/webhooks/api_client.rb +420 -0
- data/lib/hubspot/codegen/webhooks/api_error.rb +59 -0
- data/lib/hubspot/codegen/webhooks/configuration.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/error.rb +290 -0
- data/lib/hubspot/codegen/webhooks/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +229 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +254 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +268 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +217 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +210 -0
- data/lib/hubspot/codegen/{oauth/models/json_node.rb → webhooks/models/subscription_response.rb} +75 -189
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +264 -0
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/companies-app/Gemfile.lock +2 -2
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +3 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +3 -2
- data/sample-apps/contacts-app/Gemfile.lock +2 -2
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/update.rb +1 -1
- data/sample-apps/contacts-app/app/views/contacts/show.html.erb +1 -0
- data/sample-apps/leaky-bucket-app/Gemfile.lock +2 -2
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/oauth-app/Gemfile.lock +2 -2
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- metadata +170 -90
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +0 -254
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +0 -389
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -293
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -92
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +0 -217
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +0 -226
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_id.rb +0 -226
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +0 -241
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +0 -217
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +0 -224
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +0 -210
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +0 -217
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +0 -84
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +0 -336
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +0 -98
- data/spec/objects/api/associations_api_spec.rb +0 -76
- data/spec/objects/api/basic_api_spec.rb +0 -108
- data/spec/objects/api/batch_api_spec.rb +0 -88
- data/spec/objects/api/search_api_spec.rb +0 -48
- data/spec/objects/api_client_spec.rb +0 -226
- data/spec/objects/configuration_spec.rb +0 -42
- data/spec/objects/models/batch_input_simple_public_object_batch_input_spec.rb +0 -41
- data/spec/objects/models/batch_input_simple_public_object_id_spec.rb +0 -41
- data/spec/objects/models/batch_input_simple_public_object_input_spec.rb +0 -41
- data/spec/objects/models/batch_read_input_simple_public_object_id_spec.rb +0 -47
- data/spec/objects/models/batch_response_simple_public_object_spec.rb +0 -81
- data/spec/objects/models/collection_response_simple_public_object_id_spec.rb +0 -47
- data/spec/objects/models/collection_response_simple_public_object_spec.rb +0 -47
- data/spec/objects/models/collection_response_with_total_simple_public_object_spec.rb +0 -53
- data/spec/objects/models/error_detail_spec.rb +0 -65
- data/spec/objects/models/error_spec.rb +0 -71
- data/spec/objects/models/filter_group_spec.rb +0 -41
- data/spec/objects/models/filter_spec.rb +0 -57
- data/spec/objects/models/next_page_spec.rb +0 -47
- data/spec/objects/models/paging_spec.rb +0 -41
- data/spec/objects/models/public_object_search_request_spec.rb +0 -71
- data/spec/objects/models/simple_public_object_batch_input_spec.rb +0 -47
- data/spec/objects/models/simple_public_object_id_spec.rb +0 -41
- data/spec/objects/models/simple_public_object_input_spec.rb +0 -41
- data/spec/objects/models/simple_public_object_spec.rb +0 -77
@@ -0,0 +1,210 @@
|
|
1
|
+
=begin
|
2
|
+
#Associations
|
3
|
+
|
4
|
+
#Associations define the relationships between objects in HubSpot. These endpoints allow you to create, read, and remove associations.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Associations
|
18
|
+
class Paging
|
19
|
+
attr_accessor :_next
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'_next' => :'next'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.openapi_types
|
30
|
+
{
|
31
|
+
:'_next' => :'NextPage'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# List of attributes with nullable: true
|
36
|
+
def self.openapi_nullable
|
37
|
+
Set.new([
|
38
|
+
])
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
if (!attributes.is_a?(Hash))
|
45
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Associations::Paging` initialize method"
|
46
|
+
end
|
47
|
+
|
48
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
49
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Associations::Paging`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
52
|
+
end
|
53
|
+
h[k.to_sym] = v
|
54
|
+
}
|
55
|
+
|
56
|
+
if attributes.key?(:'_next')
|
57
|
+
self._next = attributes[:'_next']
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
62
|
+
# @return Array for valid properties with the reasons
|
63
|
+
def list_invalid_properties
|
64
|
+
invalid_properties = Array.new
|
65
|
+
invalid_properties
|
66
|
+
end
|
67
|
+
|
68
|
+
# Check to see if the all the properties in the model are valid
|
69
|
+
# @return true if the model is valid
|
70
|
+
def valid?
|
71
|
+
true
|
72
|
+
end
|
73
|
+
|
74
|
+
# Checks equality by comparing each attribute.
|
75
|
+
# @param [Object] Object to be compared
|
76
|
+
def ==(o)
|
77
|
+
return true if self.equal?(o)
|
78
|
+
self.class == o.class &&
|
79
|
+
_next == o._next
|
80
|
+
end
|
81
|
+
|
82
|
+
# @see the `==` method
|
83
|
+
# @param [Object] Object to be compared
|
84
|
+
def eql?(o)
|
85
|
+
self == o
|
86
|
+
end
|
87
|
+
|
88
|
+
# Calculates hash code according to all attributes.
|
89
|
+
# @return [Integer] Hash code
|
90
|
+
def hash
|
91
|
+
[_next].hash
|
92
|
+
end
|
93
|
+
|
94
|
+
# Builds the object from hash
|
95
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
96
|
+
# @return [Object] Returns the model itself
|
97
|
+
def self.build_from_hash(attributes)
|
98
|
+
new.build_from_hash(attributes)
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def build_from_hash(attributes)
|
105
|
+
return nil unless attributes.is_a?(Hash)
|
106
|
+
self.class.openapi_types.each_pair do |key, type|
|
107
|
+
if type =~ /\AArray<(.*)>/i
|
108
|
+
# check to ensure the input is an array given that the attribute
|
109
|
+
# is documented as an array but the input is not
|
110
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
111
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
112
|
+
end
|
113
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
114
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
115
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
116
|
+
end
|
117
|
+
|
118
|
+
self
|
119
|
+
end
|
120
|
+
|
121
|
+
# Deserializes the data based on type
|
122
|
+
# @param string type Data type
|
123
|
+
# @param string value Value to be deserialized
|
124
|
+
# @return [Object] Deserialized data
|
125
|
+
def _deserialize(type, value)
|
126
|
+
case type.to_sym
|
127
|
+
when :DateTime
|
128
|
+
DateTime.parse(value)
|
129
|
+
when :Date
|
130
|
+
Date.parse(value)
|
131
|
+
when :String
|
132
|
+
value.to_s
|
133
|
+
when :Integer
|
134
|
+
value.to_i
|
135
|
+
when :Float
|
136
|
+
value.to_f
|
137
|
+
when :Boolean
|
138
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
139
|
+
true
|
140
|
+
else
|
141
|
+
false
|
142
|
+
end
|
143
|
+
when :Object
|
144
|
+
# generic object (usually a Hash), return directly
|
145
|
+
value
|
146
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
147
|
+
inner_type = Regexp.last_match[:inner_type]
|
148
|
+
value.map { |v| _deserialize(inner_type, v) }
|
149
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
150
|
+
k_type = Regexp.last_match[:k_type]
|
151
|
+
v_type = Regexp.last_match[:v_type]
|
152
|
+
{}.tap do |hash|
|
153
|
+
value.each do |k, v|
|
154
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
else # model
|
158
|
+
Hubspot::Crm::Associations.const_get(type).build_from_hash(value)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the string representation of the object
|
163
|
+
# @return [String] String presentation of the object
|
164
|
+
def to_s
|
165
|
+
to_hash.to_s
|
166
|
+
end
|
167
|
+
|
168
|
+
# to_body is an alias to to_hash (backward compatibility)
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
170
|
+
def to_body
|
171
|
+
to_hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Returns the object in the form of hash
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_hash
|
177
|
+
hash = {}
|
178
|
+
self.class.attribute_map.each_pair do |attr, param|
|
179
|
+
value = self.send(attr)
|
180
|
+
if value.nil?
|
181
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
182
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
183
|
+
end
|
184
|
+
|
185
|
+
hash[param] = _to_hash(value)
|
186
|
+
end
|
187
|
+
hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Outputs non-array value in the form of hash
|
191
|
+
# For object, use to_hash. Otherwise, just return the value
|
192
|
+
# @param [Object] value Any valid value
|
193
|
+
# @return [Hash] Returns the value in the form of hash
|
194
|
+
def _to_hash(value)
|
195
|
+
if value.is_a?(Array)
|
196
|
+
value.compact.map { |v| _to_hash(v) }
|
197
|
+
elsif value.is_a?(Hash)
|
198
|
+
{}.tap do |hash|
|
199
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
200
|
+
end
|
201
|
+
elsif value.respond_to? :to_hash
|
202
|
+
value.to_hash
|
203
|
+
else
|
204
|
+
value
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,11 +20,14 @@ module Hubspot
|
|
20
20
|
|
21
21
|
attr_accessor :to
|
22
22
|
|
23
|
+
attr_accessor :type
|
24
|
+
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
26
28
|
:'from' => :'from',
|
27
|
-
:'to' => :'to'
|
29
|
+
:'to' => :'to',
|
30
|
+
:'type' => :'type'
|
28
31
|
}
|
29
32
|
end
|
30
33
|
|
@@ -32,7 +35,8 @@ module Hubspot
|
|
32
35
|
def self.openapi_types
|
33
36
|
{
|
34
37
|
:'from' => :'PublicObjectId',
|
35
|
-
:'to' => :'PublicObjectId'
|
38
|
+
:'to' => :'PublicObjectId',
|
39
|
+
:'type' => :'String'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -64,6 +68,10 @@ module Hubspot
|
|
64
68
|
if attributes.key?(:'to')
|
65
69
|
self.to = attributes[:'to']
|
66
70
|
end
|
71
|
+
|
72
|
+
if attributes.key?(:'type')
|
73
|
+
self.type = attributes[:'type']
|
74
|
+
end
|
67
75
|
end
|
68
76
|
|
69
77
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -78,6 +86,10 @@ module Hubspot
|
|
78
86
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
79
87
|
end
|
80
88
|
|
89
|
+
if @type.nil?
|
90
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
91
|
+
end
|
92
|
+
|
81
93
|
invalid_properties
|
82
94
|
end
|
83
95
|
|
@@ -86,6 +98,7 @@ module Hubspot
|
|
86
98
|
def valid?
|
87
99
|
return false if @from.nil?
|
88
100
|
return false if @to.nil?
|
101
|
+
return false if @type.nil?
|
89
102
|
true
|
90
103
|
end
|
91
104
|
|
@@ -95,7 +108,8 @@ module Hubspot
|
|
95
108
|
return true if self.equal?(o)
|
96
109
|
self.class == o.class &&
|
97
110
|
from == o.from &&
|
98
|
-
to == o.to
|
111
|
+
to == o.to &&
|
112
|
+
type == o.type
|
99
113
|
end
|
100
114
|
|
101
115
|
# @see the `==` method
|
@@ -107,7 +121,7 @@ module Hubspot
|
|
107
121
|
# Calculates hash code according to all attributes.
|
108
122
|
# @return [Integer] Hash code
|
109
123
|
def hash
|
110
|
-
[from, to].hash
|
124
|
+
[from, to, type].hash
|
111
125
|
end
|
112
126
|
|
113
127
|
# Builds the object from hash
|
@@ -0,0 +1,229 @@
|
|
1
|
+
=begin
|
2
|
+
#Associations
|
3
|
+
|
4
|
+
#Associations define the relationships between objects in HubSpot. These endpoints allow you to create, read, and remove associations.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Associations
|
18
|
+
class PublicAssociationDefiniton
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
attr_accessor :name
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'id' => :'id',
|
27
|
+
:'name' => :'name'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.openapi_types
|
33
|
+
{
|
34
|
+
:'id' => :'String',
|
35
|
+
:'name' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Associations::PublicAssociationDefiniton` initialize method"
|
50
|
+
end
|
51
|
+
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Associations::PublicAssociationDefiniton`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
57
|
+
h[k.to_sym] = v
|
58
|
+
}
|
59
|
+
|
60
|
+
if attributes.key?(:'id')
|
61
|
+
self.id = attributes[:'id']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.key?(:'name')
|
65
|
+
self.name = attributes[:'name']
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
70
|
+
# @return Array for valid properties with the reasons
|
71
|
+
def list_invalid_properties
|
72
|
+
invalid_properties = Array.new
|
73
|
+
if @id.nil?
|
74
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
75
|
+
end
|
76
|
+
|
77
|
+
if @name.nil?
|
78
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
79
|
+
end
|
80
|
+
|
81
|
+
invalid_properties
|
82
|
+
end
|
83
|
+
|
84
|
+
# Check to see if the all the properties in the model are valid
|
85
|
+
# @return true if the model is valid
|
86
|
+
def valid?
|
87
|
+
return false if @id.nil?
|
88
|
+
return false if @name.nil?
|
89
|
+
true
|
90
|
+
end
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param [Object] Object to be compared
|
94
|
+
def ==(o)
|
95
|
+
return true if self.equal?(o)
|
96
|
+
self.class == o.class &&
|
97
|
+
id == o.id &&
|
98
|
+
name == o.name
|
99
|
+
end
|
100
|
+
|
101
|
+
# @see the `==` method
|
102
|
+
# @param [Object] Object to be compared
|
103
|
+
def eql?(o)
|
104
|
+
self == o
|
105
|
+
end
|
106
|
+
|
107
|
+
# Calculates hash code according to all attributes.
|
108
|
+
# @return [Integer] Hash code
|
109
|
+
def hash
|
110
|
+
[id, name].hash
|
111
|
+
end
|
112
|
+
|
113
|
+
# Builds the object from hash
|
114
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
+
# @return [Object] Returns the model itself
|
116
|
+
def self.build_from_hash(attributes)
|
117
|
+
new.build_from_hash(attributes)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Builds the object from hash
|
121
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
122
|
+
# @return [Object] Returns the model itself
|
123
|
+
def build_from_hash(attributes)
|
124
|
+
return nil unless attributes.is_a?(Hash)
|
125
|
+
self.class.openapi_types.each_pair do |key, type|
|
126
|
+
if type =~ /\AArray<(.*)>/i
|
127
|
+
# check to ensure the input is an array given that the attribute
|
128
|
+
# is documented as an array but the input is not
|
129
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
130
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
131
|
+
end
|
132
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
133
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
134
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
135
|
+
end
|
136
|
+
|
137
|
+
self
|
138
|
+
end
|
139
|
+
|
140
|
+
# Deserializes the data based on type
|
141
|
+
# @param string type Data type
|
142
|
+
# @param string value Value to be deserialized
|
143
|
+
# @return [Object] Deserialized data
|
144
|
+
def _deserialize(type, value)
|
145
|
+
case type.to_sym
|
146
|
+
when :DateTime
|
147
|
+
DateTime.parse(value)
|
148
|
+
when :Date
|
149
|
+
Date.parse(value)
|
150
|
+
when :String
|
151
|
+
value.to_s
|
152
|
+
when :Integer
|
153
|
+
value.to_i
|
154
|
+
when :Float
|
155
|
+
value.to_f
|
156
|
+
when :Boolean
|
157
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
158
|
+
true
|
159
|
+
else
|
160
|
+
false
|
161
|
+
end
|
162
|
+
when :Object
|
163
|
+
# generic object (usually a Hash), return directly
|
164
|
+
value
|
165
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
166
|
+
inner_type = Regexp.last_match[:inner_type]
|
167
|
+
value.map { |v| _deserialize(inner_type, v) }
|
168
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
169
|
+
k_type = Regexp.last_match[:k_type]
|
170
|
+
v_type = Regexp.last_match[:v_type]
|
171
|
+
{}.tap do |hash|
|
172
|
+
value.each do |k, v|
|
173
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
else # model
|
177
|
+
Hubspot::Crm::Associations.const_get(type).build_from_hash(value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the string representation of the object
|
182
|
+
# @return [String] String presentation of the object
|
183
|
+
def to_s
|
184
|
+
to_hash.to_s
|
185
|
+
end
|
186
|
+
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_body
|
190
|
+
to_hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the object in the form of hash
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_hash
|
196
|
+
hash = {}
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
198
|
+
value = self.send(attr)
|
199
|
+
if value.nil?
|
200
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
201
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
202
|
+
end
|
203
|
+
|
204
|
+
hash[param] = _to_hash(value)
|
205
|
+
end
|
206
|
+
hash
|
207
|
+
end
|
208
|
+
|
209
|
+
# Outputs non-array value in the form of hash
|
210
|
+
# For object, use to_hash. Otherwise, just return the value
|
211
|
+
# @param [Object] value Any valid value
|
212
|
+
# @return [Hash] Returns the value in the form of hash
|
213
|
+
def _to_hash(value)
|
214
|
+
if value.is_a?(Array)
|
215
|
+
value.compact.map { |v| _to_hash(v) }
|
216
|
+
elsif value.is_a?(Hash)
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
219
|
+
end
|
220
|
+
elsif value.respond_to? :to_hash
|
221
|
+
value.to_hash
|
222
|
+
else
|
223
|
+
value
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|