radiomanager_client 1.0.87 → 1.0.89
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -2
- data/docs/EPGBroadcast.md +2 -2
- data/docs/Story.md +12 -0
- data/docs/StoryApi.md +300 -0
- data/docs/StoryDataInput.md +12 -0
- data/docs/StoryOutputOnly.md +12 -0
- data/docs/StoryRelations.md +10 -0
- data/docs/StoryRelationsItems.md +11 -0
- data/docs/StoryRelationsTags.md +11 -0
- data/docs/StoryRelationsTagsParams.md +8 -0
- data/docs/StoryResult.md +20 -0
- data/docs/StoryResults.md +17 -0
- data/lib/radiomanager_client/api/block_api.rb +3 -3
- data/lib/radiomanager_client/api/broadcast_api.rb +3 -3
- data/lib/radiomanager_client/api/campaign_api.rb +2 -2
- data/lib/radiomanager_client/api/contact_api.rb +2 -2
- data/lib/radiomanager_client/api/external_message_api.rb +2 -2
- data/lib/radiomanager_client/api/genre_api.rb +2 -2
- data/lib/radiomanager_client/api/item_api.rb +2 -2
- data/lib/radiomanager_client/api/model_type_api.rb +2 -2
- data/lib/radiomanager_client/api/presenter_api.rb +2 -2
- data/lib/radiomanager_client/api/program_api.rb +2 -2
- data/lib/radiomanager_client/api/story_api.rb +328 -0
- data/lib/radiomanager_client/api/string_api.rb +2 -2
- data/lib/radiomanager_client/api/tag_api.rb +2 -2
- data/lib/radiomanager_client/api/user_api.rb +2 -2
- data/lib/radiomanager_client/api/visual_slide_api.rb +2 -2
- data/lib/radiomanager_client/api_client.rb +2 -2
- data/lib/radiomanager_client/api_error.rb +2 -2
- data/lib/radiomanager_client/configuration.rb +2 -2
- data/lib/radiomanager_client/models/block.rb +2 -2
- data/lib/radiomanager_client/models/block_relations.rb +2 -2
- data/lib/radiomanager_client/models/block_relations_broadcast.rb +2 -2
- data/lib/radiomanager_client/models/block_relations_broadcast_params.rb +2 -2
- data/lib/radiomanager_client/models/block_relations_items.rb +2 -2
- data/lib/radiomanager_client/models/block_relations_items_params.rb +2 -2
- data/lib/radiomanager_client/models/block_relations_program.rb +2 -2
- data/lib/radiomanager_client/models/block_result.rb +2 -2
- data/lib/radiomanager_client/models/block_results.rb +2 -2
- data/lib/radiomanager_client/models/broadcast.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_data_input.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_field_values.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_input_only.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_output_only.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_relations.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_relations_blocks.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_relations_items.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_relations_items_params.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_relations_model_type.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_relations_presenters.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_relations_tags.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_result.rb +2 -2
- data/lib/radiomanager_client/models/broadcast_results.rb +2 -2
- data/lib/radiomanager_client/models/campaign.rb +2 -2
- data/lib/radiomanager_client/models/campaign_data_input.rb +2 -2
- data/lib/radiomanager_client/models/campaign_output_only.rb +2 -2
- data/lib/radiomanager_client/models/campaign_relations.rb +2 -2
- data/lib/radiomanager_client/models/campaign_relations_items.rb +2 -2
- data/lib/radiomanager_client/models/campaign_relations_items_params.rb +2 -2
- data/lib/radiomanager_client/models/campaign_result.rb +2 -2
- data/lib/radiomanager_client/models/campaign_results.rb +2 -2
- data/lib/radiomanager_client/models/contact.rb +2 -2
- data/lib/radiomanager_client/models/contact_data_input.rb +2 -2
- data/lib/radiomanager_client/models/contact_field_values.rb +2 -2
- data/lib/radiomanager_client/models/contact_output_only.rb +2 -2
- data/lib/radiomanager_client/models/contact_relations.rb +2 -2
- data/lib/radiomanager_client/models/contact_relations_items.rb +2 -2
- data/lib/radiomanager_client/models/contact_relations_tags.rb +2 -2
- data/lib/radiomanager_client/models/contact_relations_tags_params.rb +2 -2
- data/lib/radiomanager_client/models/contact_result.rb +2 -2
- data/lib/radiomanager_client/models/contact_results.rb +2 -2
- data/lib/radiomanager_client/models/data.rb +2 -2
- data/lib/radiomanager_client/models/data_1.rb +2 -2
- data/lib/radiomanager_client/models/epg_broadcast.rb +4 -4
- data/lib/radiomanager_client/models/external_message_queue_data.rb +2 -2
- data/lib/radiomanager_client/models/forbidden.rb +2 -2
- data/lib/radiomanager_client/models/genre.rb +2 -2
- data/lib/radiomanager_client/models/genre_output_only.rb +2 -2
- data/lib/radiomanager_client/models/genre_relations.rb +2 -2
- data/lib/radiomanager_client/models/genre_relations_broadcasts.rb +2 -2
- data/lib/radiomanager_client/models/genre_relations_broadcasts_params.rb +2 -2
- data/lib/radiomanager_client/models/genre_relations_programs.rb +2 -2
- data/lib/radiomanager_client/models/genre_result.rb +2 -2
- data/lib/radiomanager_client/models/genre_results.rb +2 -2
- data/lib/radiomanager_client/models/import_item.rb +2 -2
- data/lib/radiomanager_client/models/import_item_field_values.rb +2 -2
- data/lib/radiomanager_client/models/inline_response_202.rb +2 -2
- data/lib/radiomanager_client/models/internal_server_error.rb +2 -2
- data/lib/radiomanager_client/models/invite_user_data.rb +2 -2
- data/lib/radiomanager_client/models/invite_user_success.rb +2 -2
- data/lib/radiomanager_client/models/item.rb +2 -2
- data/lib/radiomanager_client/models/item_data_input.rb +2 -2
- data/lib/radiomanager_client/models/item_input_only.rb +2 -2
- data/lib/radiomanager_client/models/item_output_only.rb +2 -2
- data/lib/radiomanager_client/models/item_relations.rb +2 -2
- data/lib/radiomanager_client/models/item_relations_block.rb +2 -2
- data/lib/radiomanager_client/models/item_relations_campaign.rb +2 -2
- data/lib/radiomanager_client/models/item_relations_contacts.rb +2 -2
- data/lib/radiomanager_client/models/item_relations_contacts_params.rb +2 -2
- data/lib/radiomanager_client/models/item_relations_program.rb +2 -2
- data/lib/radiomanager_client/models/item_relations_tags.rb +2 -2
- data/lib/radiomanager_client/models/item_result.rb +2 -2
- data/lib/radiomanager_client/models/item_results.rb +2 -2
- data/lib/radiomanager_client/models/model_type.rb +2 -2
- data/lib/radiomanager_client/models/model_type_options.rb +2 -2
- data/lib/radiomanager_client/models/model_type_output_only.rb +2 -2
- data/lib/radiomanager_client/models/model_type_relations.rb +2 -2
- data/lib/radiomanager_client/models/model_type_relations_broadcasts.rb +2 -2
- data/lib/radiomanager_client/models/model_type_relations_campaigns.rb +2 -2
- data/lib/radiomanager_client/models/model_type_relations_campaigns_params.rb +2 -2
- data/lib/radiomanager_client/models/model_type_relations_contacts.rb +2 -2
- data/lib/radiomanager_client/models/model_type_relations_items.rb +2 -2
- data/lib/radiomanager_client/models/model_type_relations_presenters.rb +2 -2
- data/lib/radiomanager_client/models/model_type_relations_programs.rb +2 -2
- data/lib/radiomanager_client/models/model_type_result.rb +2 -2
- data/lib/radiomanager_client/models/model_type_results.rb +2 -2
- data/lib/radiomanager_client/models/not_found.rb +2 -2
- data/lib/radiomanager_client/models/post_success.rb +2 -2
- data/lib/radiomanager_client/models/presenter.rb +2 -2
- data/lib/radiomanager_client/models/presenter_data_input.rb +2 -2
- data/lib/radiomanager_client/models/presenter_output_only.rb +2 -2
- data/lib/radiomanager_client/models/presenter_relations.rb +2 -2
- data/lib/radiomanager_client/models/presenter_relations_broadcasts.rb +2 -2
- data/lib/radiomanager_client/models/presenter_relations_programs.rb +2 -2
- data/lib/radiomanager_client/models/presenter_relations_programs_params.rb +2 -2
- data/lib/radiomanager_client/models/presenter_result.rb +2 -2
- data/lib/radiomanager_client/models/presenter_results.rb +2 -2
- data/lib/radiomanager_client/models/program.rb +2 -2
- data/lib/radiomanager_client/models/program_data_input.rb +2 -2
- data/lib/radiomanager_client/models/program_field_values.rb +2 -2
- data/lib/radiomanager_client/models/program_input_only.rb +2 -2
- data/lib/radiomanager_client/models/program_output_only.rb +2 -2
- data/lib/radiomanager_client/models/program_relations.rb +2 -2
- data/lib/radiomanager_client/models/program_relations_blocks.rb +2 -2
- data/lib/radiomanager_client/models/program_relations_broadcasts.rb +2 -2
- data/lib/radiomanager_client/models/program_relations_items.rb +2 -2
- data/lib/radiomanager_client/models/program_relations_items_params.rb +2 -2
- data/lib/radiomanager_client/models/program_relations_presenters.rb +2 -2
- data/lib/radiomanager_client/models/program_relations_tags.rb +2 -2
- data/lib/radiomanager_client/models/program_result.rb +2 -2
- data/lib/radiomanager_client/models/program_results.rb +2 -2
- data/lib/radiomanager_client/models/read_only.rb +2 -2
- data/lib/radiomanager_client/models/relations_placeholder.rb +2 -2
- data/lib/radiomanager_client/models/story.rb +234 -0
- data/lib/radiomanager_client/models/story_data_input.rb +234 -0
- data/lib/radiomanager_client/models/story_output_only.rb +224 -0
- data/lib/radiomanager_client/models/story_relations.rb +206 -0
- data/lib/radiomanager_client/models/story_relations_items.rb +215 -0
- data/lib/radiomanager_client/models/story_relations_tags.rb +215 -0
- data/lib/radiomanager_client/models/story_relations_tags_params.rb +188 -0
- data/lib/radiomanager_client/models/story_result.rb +306 -0
- data/lib/radiomanager_client/models/story_results.rb +271 -0
- data/lib/radiomanager_client/models/success.rb +2 -2
- data/lib/radiomanager_client/models/tag.rb +2 -2
- data/lib/radiomanager_client/models/tag_data_input.rb +2 -2
- data/lib/radiomanager_client/models/tag_output_only.rb +2 -2
- data/lib/radiomanager_client/models/tag_relations.rb +2 -2
- data/lib/radiomanager_client/models/tag_relations_broadcasts.rb +2 -2
- data/lib/radiomanager_client/models/tag_relations_broadcasts_params.rb +2 -2
- data/lib/radiomanager_client/models/tag_relations_contacts.rb +2 -2
- data/lib/radiomanager_client/models/tag_relations_items.rb +2 -2
- data/lib/radiomanager_client/models/tag_relations_programs.rb +2 -2
- data/lib/radiomanager_client/models/tag_result.rb +2 -2
- data/lib/radiomanager_client/models/tag_results.rb +2 -2
- data/lib/radiomanager_client/models/text_string.rb +2 -2
- data/lib/radiomanager_client/models/too_many_requests.rb +2 -2
- data/lib/radiomanager_client/models/unprocessable_entity.rb +2 -2
- data/lib/radiomanager_client/models/user_result.rb +2 -2
- data/lib/radiomanager_client/models/user_result_settings.rb +2 -2
- data/lib/radiomanager_client/models/user_results.rb +2 -2
- data/lib/radiomanager_client/models/visual_result.rb +2 -2
- data/lib/radiomanager_client/version.rb +2 -2
- data/lib/radiomanager_client.rb +12 -2
- data/radiomanager_client.gemspec +3 -3
- data/spec/api/block_api_spec.rb +2 -2
- data/spec/api/broadcast_api_spec.rb +2 -2
- data/spec/api/campaign_api_spec.rb +2 -2
- data/spec/api/contact_api_spec.rb +2 -2
- data/spec/api/external_message_api_spec.rb +2 -2
- data/spec/api/genre_api_spec.rb +2 -2
- data/spec/api/item_api_spec.rb +2 -2
- data/spec/api/model_type_api_spec.rb +2 -2
- data/spec/api/presenter_api_spec.rb +2 -2
- data/spec/api/program_api_spec.rb +2 -2
- data/spec/api/story_api_spec.rb +101 -0
- data/spec/api/string_api_spec.rb +2 -2
- data/spec/api/tag_api_spec.rb +2 -2
- data/spec/api/user_api_spec.rb +2 -2
- data/spec/api/visual_slide_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/block_relations_broadcast_params_spec.rb +2 -2
- data/spec/models/block_relations_broadcast_spec.rb +2 -2
- data/spec/models/block_relations_items_params_spec.rb +2 -2
- data/spec/models/block_relations_items_spec.rb +2 -2
- data/spec/models/block_relations_program_spec.rb +2 -2
- data/spec/models/block_relations_spec.rb +2 -2
- data/spec/models/block_result_spec.rb +2 -2
- data/spec/models/block_results_spec.rb +2 -2
- data/spec/models/block_spec.rb +2 -2
- data/spec/models/broadcast_data_input_spec.rb +2 -2
- data/spec/models/broadcast_field_values_spec.rb +2 -2
- data/spec/models/broadcast_input_only_spec.rb +2 -2
- data/spec/models/broadcast_output_only_spec.rb +2 -2
- data/spec/models/broadcast_relations_blocks_spec.rb +2 -2
- data/spec/models/broadcast_relations_items_params_spec.rb +2 -2
- data/spec/models/broadcast_relations_items_spec.rb +2 -2
- data/spec/models/broadcast_relations_model_type_spec.rb +2 -2
- data/spec/models/broadcast_relations_presenters_spec.rb +2 -2
- data/spec/models/broadcast_relations_spec.rb +2 -2
- data/spec/models/broadcast_relations_tags_spec.rb +2 -2
- data/spec/models/broadcast_result_spec.rb +2 -2
- data/spec/models/broadcast_results_spec.rb +2 -2
- data/spec/models/broadcast_spec.rb +2 -2
- data/spec/models/campaign_data_input_spec.rb +2 -2
- data/spec/models/campaign_output_only_spec.rb +2 -2
- data/spec/models/campaign_relations_items_params_spec.rb +2 -2
- data/spec/models/campaign_relations_items_spec.rb +2 -2
- data/spec/models/campaign_relations_spec.rb +2 -2
- data/spec/models/campaign_result_spec.rb +2 -2
- data/spec/models/campaign_results_spec.rb +2 -2
- data/spec/models/campaign_spec.rb +2 -2
- data/spec/models/contact_data_input_spec.rb +2 -2
- data/spec/models/contact_field_values_spec.rb +2 -2
- data/spec/models/contact_output_only_spec.rb +2 -2
- data/spec/models/contact_relations_items_spec.rb +2 -2
- data/spec/models/contact_relations_spec.rb +2 -2
- data/spec/models/contact_relations_tags_params_spec.rb +2 -2
- data/spec/models/contact_relations_tags_spec.rb +2 -2
- data/spec/models/contact_result_spec.rb +2 -2
- data/spec/models/contact_results_spec.rb +2 -2
- data/spec/models/contact_spec.rb +2 -2
- data/spec/models/data_1_spec.rb +2 -2
- data/spec/models/data_spec.rb +2 -2
- data/spec/models/epg_broadcast_spec.rb +2 -2
- data/spec/models/external_message_queue_data_spec.rb +2 -2
- data/spec/models/forbidden_spec.rb +2 -2
- data/spec/models/genre_output_only_spec.rb +2 -2
- data/spec/models/genre_relations_broadcasts_params_spec.rb +2 -2
- data/spec/models/genre_relations_broadcasts_spec.rb +2 -2
- data/spec/models/genre_relations_programs_spec.rb +2 -2
- data/spec/models/genre_relations_spec.rb +2 -2
- data/spec/models/genre_result_spec.rb +2 -2
- data/spec/models/genre_results_spec.rb +2 -2
- data/spec/models/genre_spec.rb +2 -2
- data/spec/models/import_item_field_values_spec.rb +2 -2
- data/spec/models/import_item_spec.rb +2 -2
- data/spec/models/inline_response_202_spec.rb +2 -2
- data/spec/models/internal_server_error_spec.rb +2 -2
- data/spec/models/invite_user_data_spec.rb +2 -2
- data/spec/models/invite_user_success_spec.rb +2 -2
- data/spec/models/item_data_input_spec.rb +2 -2
- data/spec/models/item_input_only_spec.rb +2 -2
- data/spec/models/item_output_only_spec.rb +2 -2
- data/spec/models/item_relations_block_spec.rb +2 -2
- data/spec/models/item_relations_campaign_spec.rb +2 -2
- data/spec/models/item_relations_contacts_params_spec.rb +2 -2
- data/spec/models/item_relations_contacts_spec.rb +2 -2
- data/spec/models/item_relations_program_spec.rb +2 -2
- data/spec/models/item_relations_spec.rb +2 -2
- data/spec/models/item_relations_tags_spec.rb +2 -2
- data/spec/models/item_result_spec.rb +2 -2
- data/spec/models/item_results_spec.rb +2 -2
- data/spec/models/item_spec.rb +2 -2
- data/spec/models/model_type_options_spec.rb +2 -2
- data/spec/models/model_type_output_only_spec.rb +2 -2
- data/spec/models/model_type_relations_broadcasts_spec.rb +2 -2
- data/spec/models/model_type_relations_campaigns_params_spec.rb +2 -2
- data/spec/models/model_type_relations_campaigns_spec.rb +2 -2
- data/spec/models/model_type_relations_contacts_spec.rb +2 -2
- data/spec/models/model_type_relations_items_spec.rb +2 -2
- data/spec/models/model_type_relations_presenters_spec.rb +2 -2
- data/spec/models/model_type_relations_programs_spec.rb +2 -2
- data/spec/models/model_type_relations_spec.rb +2 -2
- data/spec/models/model_type_result_spec.rb +2 -2
- data/spec/models/model_type_results_spec.rb +2 -2
- data/spec/models/model_type_spec.rb +2 -2
- data/spec/models/not_found_spec.rb +2 -2
- data/spec/models/post_success_spec.rb +2 -2
- data/spec/models/presenter_data_input_spec.rb +2 -2
- data/spec/models/presenter_output_only_spec.rb +2 -2
- data/spec/models/presenter_relations_broadcasts_spec.rb +2 -2
- data/spec/models/presenter_relations_programs_params_spec.rb +2 -2
- data/spec/models/presenter_relations_programs_spec.rb +2 -2
- data/spec/models/presenter_relations_spec.rb +2 -2
- data/spec/models/presenter_result_spec.rb +2 -2
- data/spec/models/presenter_results_spec.rb +2 -2
- data/spec/models/presenter_spec.rb +2 -2
- data/spec/models/program_data_input_spec.rb +2 -2
- data/spec/models/program_field_values_spec.rb +2 -2
- data/spec/models/program_input_only_spec.rb +2 -2
- data/spec/models/program_output_only_spec.rb +2 -2
- data/spec/models/program_relations_blocks_spec.rb +2 -2
- data/spec/models/program_relations_broadcasts_spec.rb +2 -2
- data/spec/models/program_relations_items_params_spec.rb +2 -2
- data/spec/models/program_relations_items_spec.rb +2 -2
- data/spec/models/program_relations_presenters_spec.rb +2 -2
- data/spec/models/program_relations_spec.rb +2 -2
- data/spec/models/program_relations_tags_spec.rb +2 -2
- data/spec/models/program_result_spec.rb +2 -2
- data/spec/models/program_results_spec.rb +2 -2
- data/spec/models/program_spec.rb +2 -2
- data/spec/models/read_only_spec.rb +2 -2
- data/spec/models/relations_placeholder_spec.rb +2 -2
- data/spec/models/story_data_input_spec.rb +66 -0
- data/spec/models/story_output_only_spec.rb +66 -0
- data/spec/models/story_relations_items_spec.rb +60 -0
- data/spec/models/story_relations_spec.rb +54 -0
- data/spec/models/story_relations_tags_params_spec.rb +42 -0
- data/spec/models/story_relations_tags_spec.rb +60 -0
- data/spec/models/story_result_spec.rb +114 -0
- data/spec/models/story_results_spec.rb +96 -0
- data/spec/models/story_spec.rb +66 -0
- data/spec/models/success_spec.rb +2 -2
- data/spec/models/tag_data_input_spec.rb +2 -2
- data/spec/models/tag_output_only_spec.rb +2 -2
- data/spec/models/tag_relations_broadcasts_params_spec.rb +2 -2
- data/spec/models/tag_relations_broadcasts_spec.rb +2 -2
- data/spec/models/tag_relations_contacts_spec.rb +2 -2
- data/spec/models/tag_relations_items_spec.rb +2 -2
- data/spec/models/tag_relations_programs_spec.rb +2 -2
- data/spec/models/tag_relations_spec.rb +2 -2
- data/spec/models/tag_result_spec.rb +2 -2
- data/spec/models/tag_results_spec.rb +2 -2
- data/spec/models/tag_spec.rb +2 -2
- data/spec/models/text_string_spec.rb +2 -2
- data/spec/models/too_many_requests_spec.rb +2 -2
- data/spec/models/unprocessable_entity_spec.rb +2 -2
- data/spec/models/user_result_settings_spec.rb +2 -2
- data/spec/models/user_result_spec.rb +2 -2
- data/spec/models/user_results_spec.rb +2 -2
- data/spec/models/visual_result_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +42 -2
@@ -0,0 +1,206 @@
|
|
1
|
+
=begin
|
2
|
+
#RadioManager
|
3
|
+
|
4
|
+
#RadioManager
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
Contact: support@pluxbox.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module RadioManagerClient
|
16
|
+
|
17
|
+
class StoryRelations
|
18
|
+
attr_accessor :tags
|
19
|
+
|
20
|
+
attr_accessor :items
|
21
|
+
|
22
|
+
attr_accessor :model_type
|
23
|
+
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'tags' => :'tags',
|
29
|
+
:'items' => :'items',
|
30
|
+
:'model_type' => :'model_type'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Attribute type mapping.
|
35
|
+
def self.swagger_types
|
36
|
+
{
|
37
|
+
:'tags' => :'StoryRelationsTags',
|
38
|
+
:'items' => :'StoryRelationsItems',
|
39
|
+
:'model_type' => :'BroadcastRelationsModelType'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
return unless attributes.is_a?(Hash)
|
47
|
+
|
48
|
+
# convert string to symbol for hash key
|
49
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
50
|
+
|
51
|
+
if attributes.has_key?(:'tags')
|
52
|
+
self.tags = attributes[:'tags']
|
53
|
+
end
|
54
|
+
|
55
|
+
if attributes.has_key?(:'items')
|
56
|
+
self.items = attributes[:'items']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'model_type')
|
60
|
+
self.model_type = attributes[:'model_type']
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
66
|
+
# @return Array for valid properies with the reasons
|
67
|
+
def list_invalid_properties
|
68
|
+
invalid_properties = Array.new
|
69
|
+
return invalid_properties
|
70
|
+
end
|
71
|
+
|
72
|
+
# Check to see if the all the properties in the model are valid
|
73
|
+
# @return true if the model is valid
|
74
|
+
def valid?
|
75
|
+
return true
|
76
|
+
end
|
77
|
+
|
78
|
+
# Checks equality by comparing each attribute.
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def ==(o)
|
81
|
+
return true if self.equal?(o)
|
82
|
+
self.class == o.class &&
|
83
|
+
tags == o.tags &&
|
84
|
+
items == o.items &&
|
85
|
+
model_type == o.model_type
|
86
|
+
end
|
87
|
+
|
88
|
+
# @see the `==` method
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def eql?(o)
|
91
|
+
self == o
|
92
|
+
end
|
93
|
+
|
94
|
+
# Calculates hash code according to all attributes.
|
95
|
+
# @return [Fixnum] Hash code
|
96
|
+
def hash
|
97
|
+
[tags, items, model_type].hash
|
98
|
+
end
|
99
|
+
|
100
|
+
# Builds the object from hash
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
+
# @return [Object] Returns the model itself
|
103
|
+
def build_from_hash(attributes)
|
104
|
+
return nil unless attributes.is_a?(Hash)
|
105
|
+
self.class.swagger_types.each_pair do |key, type|
|
106
|
+
if type =~ /\AArray<(.*)>/i
|
107
|
+
# check to ensure the input is an array given that the the attribute
|
108
|
+
# is documented as an array but the input is not
|
109
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
111
|
+
end
|
112
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
115
|
+
end
|
116
|
+
|
117
|
+
self
|
118
|
+
end
|
119
|
+
|
120
|
+
# Deserializes the data based on type
|
121
|
+
# @param string type Data type
|
122
|
+
# @param string value Value to be deserialized
|
123
|
+
# @return [Object] Deserialized data
|
124
|
+
def _deserialize(type, value)
|
125
|
+
case type.to_sym
|
126
|
+
when :DateTime
|
127
|
+
DateTime.parse(value)
|
128
|
+
when :Date
|
129
|
+
Date.parse(value)
|
130
|
+
when :String
|
131
|
+
value.to_s
|
132
|
+
when :Integer
|
133
|
+
value.to_i
|
134
|
+
when :Float
|
135
|
+
value.to_f
|
136
|
+
when :BOOLEAN
|
137
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
138
|
+
true
|
139
|
+
else
|
140
|
+
false
|
141
|
+
end
|
142
|
+
when :Object
|
143
|
+
# generic object (usually a Hash), return directly
|
144
|
+
value
|
145
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
146
|
+
inner_type = Regexp.last_match[:inner_type]
|
147
|
+
value.map { |v| _deserialize(inner_type, v) }
|
148
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
149
|
+
k_type = Regexp.last_match[:k_type]
|
150
|
+
v_type = Regexp.last_match[:v_type]
|
151
|
+
{}.tap do |hash|
|
152
|
+
value.each do |k, v|
|
153
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
else # model
|
157
|
+
temp_model = RadioManagerClient.const_get(type).new
|
158
|
+
temp_model.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
|
+
next if value.nil?
|
181
|
+
hash[param] = _to_hash(value)
|
182
|
+
end
|
183
|
+
hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Outputs non-array value in the form of hash
|
187
|
+
# For object, use to_hash. Otherwise, just return the value
|
188
|
+
# @param [Object] value Any valid value
|
189
|
+
# @return [Hash] Returns the value in the form of hash
|
190
|
+
def _to_hash(value)
|
191
|
+
if value.is_a?(Array)
|
192
|
+
value.compact.map{ |v| _to_hash(v) }
|
193
|
+
elsif value.is_a?(Hash)
|
194
|
+
{}.tap do |hash|
|
195
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
196
|
+
end
|
197
|
+
elsif value.respond_to? :to_hash
|
198
|
+
value.to_hash
|
199
|
+
else
|
200
|
+
value
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
end
|
205
|
+
|
206
|
+
end
|
@@ -0,0 +1,215 @@
|
|
1
|
+
=begin
|
2
|
+
#RadioManager
|
3
|
+
|
4
|
+
#RadioManager
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
Contact: support@pluxbox.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module RadioManagerClient
|
16
|
+
|
17
|
+
class StoryRelationsItems
|
18
|
+
attr_accessor :href
|
19
|
+
|
20
|
+
attr_accessor :model
|
21
|
+
|
22
|
+
attr_accessor :operation
|
23
|
+
|
24
|
+
attr_accessor :params
|
25
|
+
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'href' => :'href',
|
31
|
+
:'model' => :'model',
|
32
|
+
:'operation' => :'operation',
|
33
|
+
:'params' => :'params'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.swagger_types
|
39
|
+
{
|
40
|
+
:'href' => :'String',
|
41
|
+
:'model' => :'String',
|
42
|
+
:'operation' => :'String',
|
43
|
+
:'params' => :'StoryRelationsTagsParams'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
+
def initialize(attributes = {})
|
50
|
+
return unless attributes.is_a?(Hash)
|
51
|
+
|
52
|
+
# convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
54
|
+
|
55
|
+
if attributes.has_key?(:'href')
|
56
|
+
self.href = attributes[:'href']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'model')
|
60
|
+
self.model = attributes[:'model']
|
61
|
+
end
|
62
|
+
|
63
|
+
if attributes.has_key?(:'operation')
|
64
|
+
self.operation = attributes[:'operation']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.has_key?(:'params')
|
68
|
+
self.params = attributes[:'params']
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properies with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
return invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
return true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
href == o.href &&
|
92
|
+
model == o.model &&
|
93
|
+
operation == o.operation &&
|
94
|
+
params == o.params
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def eql?(o)
|
100
|
+
self == o
|
101
|
+
end
|
102
|
+
|
103
|
+
# Calculates hash code according to all attributes.
|
104
|
+
# @return [Fixnum] Hash code
|
105
|
+
def hash
|
106
|
+
[href, model, operation, params].hash
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def build_from_hash(attributes)
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
114
|
+
self.class.swagger_types.each_pair do |key, type|
|
115
|
+
if type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
120
|
+
end
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :DateTime
|
136
|
+
DateTime.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :BOOLEAN
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
temp_model = RadioManagerClient.const_get(type).new
|
167
|
+
temp_model.build_from_hash(value)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the string representation of the object
|
172
|
+
# @return [String] String presentation of the object
|
173
|
+
def to_s
|
174
|
+
to_hash.to_s
|
175
|
+
end
|
176
|
+
|
177
|
+
# to_body is an alias to to_hash (backward compatibility)
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_body
|
180
|
+
to_hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the object in the form of hash
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
185
|
+
def to_hash
|
186
|
+
hash = {}
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
188
|
+
value = self.send(attr)
|
189
|
+
next if value.nil?
|
190
|
+
hash[param] = _to_hash(value)
|
191
|
+
end
|
192
|
+
hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Outputs non-array value in the form of hash
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
197
|
+
# @param [Object] value Any valid value
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
199
|
+
def _to_hash(value)
|
200
|
+
if value.is_a?(Array)
|
201
|
+
value.compact.map{ |v| _to_hash(v) }
|
202
|
+
elsif value.is_a?(Hash)
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
205
|
+
end
|
206
|
+
elsif value.respond_to? :to_hash
|
207
|
+
value.to_hash
|
208
|
+
else
|
209
|
+
value
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
end
|
214
|
+
|
215
|
+
end
|
@@ -0,0 +1,215 @@
|
|
1
|
+
=begin
|
2
|
+
#RadioManager
|
3
|
+
|
4
|
+
#RadioManager
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
Contact: support@pluxbox.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module RadioManagerClient
|
16
|
+
|
17
|
+
class StoryRelationsTags
|
18
|
+
attr_accessor :href
|
19
|
+
|
20
|
+
attr_accessor :model
|
21
|
+
|
22
|
+
attr_accessor :operation
|
23
|
+
|
24
|
+
attr_accessor :params
|
25
|
+
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'href' => :'href',
|
31
|
+
:'model' => :'model',
|
32
|
+
:'operation' => :'operation',
|
33
|
+
:'params' => :'params'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.swagger_types
|
39
|
+
{
|
40
|
+
:'href' => :'String',
|
41
|
+
:'model' => :'String',
|
42
|
+
:'operation' => :'String',
|
43
|
+
:'params' => :'StoryRelationsTagsParams'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
+
def initialize(attributes = {})
|
50
|
+
return unless attributes.is_a?(Hash)
|
51
|
+
|
52
|
+
# convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
54
|
+
|
55
|
+
if attributes.has_key?(:'href')
|
56
|
+
self.href = attributes[:'href']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'model')
|
60
|
+
self.model = attributes[:'model']
|
61
|
+
end
|
62
|
+
|
63
|
+
if attributes.has_key?(:'operation')
|
64
|
+
self.operation = attributes[:'operation']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.has_key?(:'params')
|
68
|
+
self.params = attributes[:'params']
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properies with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
return invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
return true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
href == o.href &&
|
92
|
+
model == o.model &&
|
93
|
+
operation == o.operation &&
|
94
|
+
params == o.params
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def eql?(o)
|
100
|
+
self == o
|
101
|
+
end
|
102
|
+
|
103
|
+
# Calculates hash code according to all attributes.
|
104
|
+
# @return [Fixnum] Hash code
|
105
|
+
def hash
|
106
|
+
[href, model, operation, params].hash
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def build_from_hash(attributes)
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
114
|
+
self.class.swagger_types.each_pair do |key, type|
|
115
|
+
if type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
120
|
+
end
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :DateTime
|
136
|
+
DateTime.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :BOOLEAN
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
temp_model = RadioManagerClient.const_get(type).new
|
167
|
+
temp_model.build_from_hash(value)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the string representation of the object
|
172
|
+
# @return [String] String presentation of the object
|
173
|
+
def to_s
|
174
|
+
to_hash.to_s
|
175
|
+
end
|
176
|
+
|
177
|
+
# to_body is an alias to to_hash (backward compatibility)
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_body
|
180
|
+
to_hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the object in the form of hash
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
185
|
+
def to_hash
|
186
|
+
hash = {}
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
188
|
+
value = self.send(attr)
|
189
|
+
next if value.nil?
|
190
|
+
hash[param] = _to_hash(value)
|
191
|
+
end
|
192
|
+
hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Outputs non-array value in the form of hash
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
197
|
+
# @param [Object] value Any valid value
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
199
|
+
def _to_hash(value)
|
200
|
+
if value.is_a?(Array)
|
201
|
+
value.compact.map{ |v| _to_hash(v) }
|
202
|
+
elsif value.is_a?(Hash)
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
205
|
+
end
|
206
|
+
elsif value.respond_to? :to_hash
|
207
|
+
value.to_hash
|
208
|
+
else
|
209
|
+
value
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
end
|
214
|
+
|
215
|
+
end
|