osuny_api 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +33 -23
- data/README.md +513 -58
- data/Rakefile +8 -7
- data/docs/CategoriesIdBody2.md +1 -1
- data/docs/CategoriesIdBody3.md +7 -0
- data/docs/CategoriesIdBody4.md +7 -0
- data/docs/CategoriesUpsertBody2.md +1 -1
- data/docs/CategoriesUpsertBody3.md +7 -0
- data/docs/CategoriesUpsertBody4.md +7 -0
- data/docs/CommunicationBlockAgendaData.md +3 -0
- data/docs/CommunicationBlockCallToActionData.md +1 -1
- data/docs/CommunicationBlockChapterData.md +1 -1
- data/docs/CommunicationBlockChapterDataImage.md +9 -0
- data/docs/CommunicationBlockExhibitions.md +14 -0
- data/docs/CommunicationBlockExhibitionsData.md +20 -0
- data/docs/CommunicationBlockFeaturesDataElements.md +1 -1
- data/docs/CommunicationBlockFilesDataElements.md +2 -2
- data/docs/CommunicationBlockGalleryDataElements.md +1 -1
- data/docs/CommunicationBlockImageData.md +1 -1
- data/docs/CommunicationBlockJobs.md +14 -0
- data/docs/CommunicationBlockJobsData.md +18 -0
- data/docs/CommunicationBlockKeyFiguresDataElements.md +1 -1
- data/docs/CommunicationBlockLinksData.md +2 -0
- data/docs/CommunicationBlockLinksDataElements.md +1 -2
- data/docs/CommunicationBlockLocationsData.md +1 -1
- data/docs/CommunicationBlockOrganizationsData.md +2 -0
- data/docs/CommunicationBlockOrganizationsDataElements.md +2 -1
- data/docs/CommunicationBlockPagesData.md +2 -1
- data/docs/CommunicationBlockPapersData.md +1 -1
- data/docs/CommunicationBlockPostsData.md +1 -1
- data/docs/CommunicationBlockProgramsData.md +1 -1
- data/docs/CommunicationBlockProgramsDataElements.md +7 -0
- data/docs/CommunicationBlockProjectsData.md +1 -1
- data/docs/CommunicationBlockSoundData.md +1 -1
- data/docs/CommunicationBlockTestimonialsData.md +1 -0
- data/docs/CommunicationBlockTestimonialsDataElements.md +1 -1
- data/docs/CommunicationMedia.md +17 -0
- data/docs/CommunicationMediaLocalization.md +13 -0
- data/docs/CommunicationMediaOriginalBlob.md +10 -0
- data/docs/CommunicationMediasBody.md +8 -0
- data/docs/CommunicationWebsite.md +1 -0
- data/docs/CommunicationWebsiteAgendaCategoryApi.md +8 -3
- data/docs/CommunicationWebsiteAgendaCategoryLocalization.md +6 -0
- data/docs/CommunicationWebsiteAgendaEventApi.md +8 -3
- data/docs/CommunicationWebsiteAgendaEventLocalization.md +1 -0
- data/docs/CommunicationWebsiteApi.md +11 -3
- data/docs/CommunicationWebsiteMediaApi.md +61 -0
- data/docs/CommunicationWebsitePageApi.md +8 -3
- data/docs/CommunicationWebsitePageCategoryApi.md +8 -3
- data/docs/CommunicationWebsitePageCategoryLocalization.md +6 -0
- data/docs/CommunicationWebsitePageLocalization.md +2 -0
- data/docs/CommunicationWebsitePermalink.md +8 -0
- data/docs/CommunicationWebsitePortfolioCategory.md +15 -0
- data/docs/CommunicationWebsitePortfolioCategoryApi.md +334 -0
- data/docs/CommunicationWebsitePortfolioCategoryLocalization.md +23 -0
- data/docs/CommunicationWebsitePortfolioProject.md +15 -0
- data/docs/CommunicationWebsitePortfolioProjectApi.md +334 -0
- data/docs/CommunicationWebsitePortfolioProjectLocalization.md +23 -0
- data/docs/CommunicationWebsitePost.md +1 -0
- data/docs/CommunicationWebsitePostApi.md +8 -3
- data/docs/CommunicationWebsitePostCategory.md +14 -0
- data/docs/CommunicationWebsitePostCategoryApi.md +334 -0
- data/docs/CommunicationWebsitePostCategoryLocalization.md +23 -0
- data/docs/CommunicationWebsitePostLocalization.md +1 -1
- data/docs/OneOfcommunicationWebsitePortfolioCategoryLocalizationBlocksItems.md +6 -0
- data/docs/OneOfcommunicationWebsitePortfolioProjectLocalizationBlocksItems.md +6 -0
- data/docs/OneOfcommunicationWebsitePostCategoryLocalizationBlocksItems.md +6 -0
- data/docs/PortfolioCategoriesBody.md +7 -0
- data/docs/PortfolioProjectsBody.md +7 -0
- data/docs/PostsCategoriesBody.md +7 -0
- data/docs/ProjectsIdBody.md +7 -0
- data/docs/ProjectsUpsertBody.md +7 -0
- data/docs/UniversityOrganization.md +0 -1
- data/docs/UniversityOrganizationApi.md +11 -3
- data/docs/UniversityOrganizationCategoryApi.md +15 -7
- data/docs/UniversityOrganizationCategoryLocalization.md +6 -0
- data/docs/UniversityOrganizationLocalization.md +2 -0
- data/generate.sh +0 -0
- data/lib/osuny_api/api/communication_website_agenda_category_api.rb +7 -1
- data/lib/osuny_api/api/communication_website_agenda_event_api.rb +7 -1
- data/lib/osuny_api/api/communication_website_api.rb +7 -1
- data/lib/osuny_api/api/communication_website_media_api.rb +76 -0
- data/lib/osuny_api/api/communication_website_page_api.rb +7 -1
- data/lib/osuny_api/api/communication_website_page_category_api.rb +7 -1
- data/lib/osuny_api/api/communication_website_portfolio_category_api.rb +380 -0
- data/lib/osuny_api/api/communication_website_portfolio_project_api.rb +380 -0
- data/lib/osuny_api/api/communication_website_post_api.rb +7 -1
- data/lib/osuny_api/api/communication_website_post_category_api.rb +380 -0
- data/lib/osuny_api/api/university_organization_api.rb +7 -1
- data/lib/osuny_api/api/university_organization_category_api.rb +11 -5
- data/lib/osuny_api/api_client.rb +1 -1
- data/lib/osuny_api/api_error.rb +1 -1
- data/lib/osuny_api/configuration.rb +1 -1
- data/lib/osuny_api/models/agenda_categories_body.rb +1 -1
- data/lib/osuny_api/models/agenda_events_body.rb +1 -1
- data/lib/osuny_api/models/categories_id_body.rb +1 -1
- data/lib/osuny_api/models/categories_id_body_1.rb +1 -1
- data/lib/osuny_api/models/categories_id_body_2.rb +1 -1
- data/lib/osuny_api/models/categories_id_body_3.rb +211 -0
- data/lib/osuny_api/models/categories_id_body_4.rb +211 -0
- data/lib/osuny_api/models/categories_upsert_body.rb +1 -1
- data/lib/osuny_api/models/categories_upsert_body_1.rb +1 -1
- data/lib/osuny_api/models/categories_upsert_body_2.rb +1 -1
- data/lib/osuny_api/models/categories_upsert_body_3.rb +213 -0
- data/lib/osuny_api/models/categories_upsert_body_4.rb +213 -0
- data/lib/osuny_api/models/communication_block_agenda.rb +1 -1
- data/lib/osuny_api/models/communication_block_agenda_data.rb +31 -4
- data/lib/osuny_api/models/communication_block_agenda_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_call_to_action.rb +1 -1
- data/lib/osuny_api/models/communication_block_call_to_action_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_call_to_action_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_categories.rb +1 -1
- data/lib/osuny_api/models/communication_block_categories_data.rb +3 -3
- data/lib/osuny_api/models/communication_block_chapter.rb +1 -1
- data/lib/osuny_api/models/communication_block_chapter_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_chapter_data_image.rb +227 -0
- data/lib/osuny_api/models/communication_block_contact.rb +1 -1
- data/lib/osuny_api/models/communication_block_contact_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_contact_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_contact_data_time_slot_morning.rb +1 -1
- data/lib/osuny_api/models/communication_block_datatable.rb +1 -1
- data/lib/osuny_api/models/communication_block_datatable_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_datatable_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_definitions.rb +1 -1
- data/lib/osuny_api/models/communication_block_definitions_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_definitions_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_embed.rb +1 -1
- data/lib/osuny_api/models/communication_block_embed_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_exhibitions.rb +312 -0
- data/lib/osuny_api/models/communication_block_exhibitions_data.rb +384 -0
- data/lib/osuny_api/models/communication_block_features.rb +1 -1
- data/lib/osuny_api/models/communication_block_features_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_features_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_files.rb +1 -1
- data/lib/osuny_api/models/communication_block_files_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_files_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_gallery.rb +1 -1
- data/lib/osuny_api/models/communication_block_gallery_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_gallery_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_image.rb +1 -1
- data/lib/osuny_api/models/communication_block_image_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_jobs.rb +312 -0
- data/lib/osuny_api/models/communication_block_jobs_data.rb +354 -0
- data/lib/osuny_api/models/communication_block_key_figures.rb +1 -1
- data/lib/osuny_api/models/communication_block_key_figures_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_key_figures_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_license.rb +1 -1
- data/lib/osuny_api/models/communication_block_license_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_links.rb +1 -1
- data/lib/osuny_api/models/communication_block_links_data.rb +54 -2
- data/lib/osuny_api/models/communication_block_links_data_elements.rb +2 -11
- data/lib/osuny_api/models/communication_block_locations.rb +1 -1
- data/lib/osuny_api/models/communication_block_locations_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_organizations.rb +1 -1
- data/lib/osuny_api/models/communication_block_organizations_data.rb +22 -4
- data/lib/osuny_api/models/communication_block_organizations_data_elements.rb +14 -5
- data/lib/osuny_api/models/communication_block_pages.rb +1 -1
- data/lib/osuny_api/models/communication_block_pages_data.rb +11 -2
- data/lib/osuny_api/models/communication_block_papers.rb +1 -1
- data/lib/osuny_api/models/communication_block_papers_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_persons.rb +1 -1
- data/lib/osuny_api/models/communication_block_persons_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_persons_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_posts.rb +1 -1
- data/lib/osuny_api/models/communication_block_posts_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_programs.rb +1 -1
- data/lib/osuny_api/models/communication_block_programs_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_programs_data_elements.rb +206 -0
- data/lib/osuny_api/models/communication_block_projects.rb +1 -1
- data/lib/osuny_api/models/communication_block_projects_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_sound.rb +1 -1
- data/lib/osuny_api/models/communication_block_sound_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_testimonials.rb +1 -1
- data/lib/osuny_api/models/communication_block_testimonials_data.rb +45 -2
- data/lib/osuny_api/models/communication_block_testimonials_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_timeline.rb +1 -1
- data/lib/osuny_api/models/communication_block_timeline_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_timeline_data_elements.rb +1 -1
- data/lib/osuny_api/models/communication_block_title.rb +1 -1
- data/lib/osuny_api/models/communication_block_title_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_video.rb +1 -1
- data/lib/osuny_api/models/communication_block_video_data.rb +1 -1
- data/lib/osuny_api/models/communication_block_volumes.rb +1 -1
- data/lib/osuny_api/models/communication_media.rb +339 -0
- data/lib/osuny_api/models/communication_media_localization.rb +265 -0
- data/lib/osuny_api/models/communication_media_original_blob.rb +237 -0
- data/lib/osuny_api/models/communication_medias_body.rb +215 -0
- data/lib/osuny_api/models/communication_website.rb +46 -2
- data/lib/osuny_api/models/communication_website_agenda_category.rb +1 -1
- data/lib/osuny_api/models/communication_website_agenda_category_localization.rb +62 -2
- data/lib/osuny_api/models/communication_website_agenda_category_localization_featured_image.rb +1 -1
- data/lib/osuny_api/models/communication_website_agenda_event.rb +1 -1
- data/lib/osuny_api/models/communication_website_agenda_event_localization.rb +13 -2
- data/lib/osuny_api/models/communication_website_agenda_event_localization_add_to_calendar_urls.rb +1 -1
- data/lib/osuny_api/models/communication_website_agenda_event_time_slot.rb +1 -1
- data/lib/osuny_api/models/communication_website_agenda_event_time_slot_localization.rb +1 -1
- data/lib/osuny_api/models/communication_website_deuxfleurs.rb +1 -1
- data/lib/osuny_api/models/communication_website_features.rb +1 -1
- data/lib/osuny_api/models/communication_website_git.rb +1 -1
- data/lib/osuny_api/models/communication_website_localization.rb +1 -1
- data/lib/osuny_api/models/communication_website_page.rb +1 -1
- data/lib/osuny_api/models/communication_website_page_category.rb +1 -1
- data/lib/osuny_api/models/communication_website_page_category_localization.rb +62 -2
- data/lib/osuny_api/models/communication_website_page_localization.rb +23 -2
- data/lib/osuny_api/models/communication_website_permalink.rb +215 -0
- data/lib/osuny_api/models/communication_website_portfolio_category.rb +284 -0
- data/lib/osuny_api/models/communication_website_portfolio_category_localization.rb +362 -0
- data/lib/osuny_api/models/communication_website_portfolio_project.rb +285 -0
- data/lib/osuny_api/models/communication_website_portfolio_project_localization.rb +362 -0
- data/lib/osuny_api/models/communication_website_post.rb +13 -2
- data/lib/osuny_api/models/communication_website_post_category.rb +274 -0
- data/lib/osuny_api/models/communication_website_post_category_localization.rb +362 -0
- data/lib/osuny_api/models/communication_website_post_localization.rb +10 -9
- data/lib/osuny_api/models/communication_website_showcase.rb +1 -1
- data/lib/osuny_api/models/communication_website_showcase_tags.rb +1 -1
- data/lib/osuny_api/models/events_id_body.rb +1 -1
- data/lib/osuny_api/models/events_upsert_body.rb +1 -1
- data/lib/osuny_api/models/one_ofcommunication_website_agenda_category_localization_blocks_items.rb +1 -1
- data/lib/osuny_api/models/one_ofcommunication_website_agenda_event_localization_blocks_items.rb +1 -1
- data/lib/osuny_api/models/one_ofcommunication_website_page_category_localization_blocks_items.rb +1 -1
- data/lib/osuny_api/models/one_ofcommunication_website_page_localization_blocks_items.rb +1 -1
- data/lib/osuny_api/models/one_ofcommunication_website_portfolio_category_localization_blocks_items.rb +197 -0
- data/lib/osuny_api/models/one_ofcommunication_website_portfolio_project_localization_blocks_items.rb +197 -0
- data/lib/osuny_api/models/one_ofcommunication_website_post_category_localization_blocks_items.rb +197 -0
- data/lib/osuny_api/models/one_ofcommunication_website_post_localization_blocks_items.rb +1 -1
- data/lib/osuny_api/models/one_ofuniversity_organization_category_localization_blocks_items.rb +1 -1
- data/lib/osuny_api/models/one_ofuniversity_organization_localization_blocks_items.rb +1 -1
- data/lib/osuny_api/models/organizations_categories_body.rb +1 -1
- data/lib/osuny_api/models/organizations_id_body.rb +1 -1
- data/lib/osuny_api/models/organizations_upsert_body.rb +1 -1
- data/lib/osuny_api/models/pages_categories_body.rb +1 -1
- data/lib/osuny_api/models/pages_id_body.rb +1 -1
- data/lib/osuny_api/models/pages_upsert_body.rb +1 -1
- data/lib/osuny_api/models/portfolio_categories_body.rb +211 -0
- data/lib/osuny_api/models/portfolio_projects_body.rb +211 -0
- data/lib/osuny_api/models/posts_categories_body.rb +211 -0
- data/lib/osuny_api/models/posts_id_body.rb +1 -1
- data/lib/osuny_api/models/posts_upsert_body.rb +1 -1
- data/lib/osuny_api/models/projects_id_body.rb +211 -0
- data/lib/osuny_api/models/projects_upsert_body.rb +213 -0
- data/lib/osuny_api/models/university_organization.rb +4 -13
- data/lib/osuny_api/models/university_organization_category.rb +1 -1
- data/lib/osuny_api/models/university_organization_category_localization.rb +62 -2
- data/lib/osuny_api/models/university_organization_localization.rb +21 -2
- data/lib/osuny_api/models/university_organizations_body.rb +1 -1
- data/lib/osuny_api/models/website_id_pages_body.rb +1 -1
- data/lib/osuny_api/models/website_id_posts_body.rb +1 -1
- data/lib/osuny_api/version.rb +2 -2
- data/lib/osuny_api.rb +34 -3
- data/osuny_api.gemspec +2 -1
- data/spec/api/communication_website_media_api_spec.rb +46 -0
- data/spec/api/communication_website_portfolio_category_api_spec.rb +108 -0
- data/spec/api/communication_website_portfolio_project_api_spec.rb +108 -0
- data/spec/api/communication_website_post_category_api_spec.rb +108 -0
- data/spec/models/categories_id_body_3_spec.rb +40 -0
- data/spec/models/categories_id_body_4_spec.rb +40 -0
- data/spec/models/categories_upsert_body_3_spec.rb +40 -0
- data/spec/models/categories_upsert_body_4_spec.rb +40 -0
- data/spec/models/communication_block_chapter_data_image_spec.rb +52 -0
- data/spec/models/communication_block_exhibitions_data_spec.rb +130 -0
- data/spec/models/communication_block_exhibitions_spec.rb +86 -0
- data/spec/models/communication_block_jobs_data_spec.rb +114 -0
- data/spec/models/communication_block_jobs_spec.rb +86 -0
- data/spec/models/communication_block_programs_data_elements_spec.rb +40 -0
- data/spec/models/communication_media_localization_spec.rb +76 -0
- data/spec/models/communication_media_original_blob_spec.rb +58 -0
- data/spec/models/communication_media_spec.rb +104 -0
- data/spec/models/communication_medias_body_spec.rb +46 -0
- data/spec/models/communication_website_permalink_spec.rb +46 -0
- data/spec/models/communication_website_portfolio_category_localization_spec.rb +136 -0
- data/spec/models/communication_website_portfolio_category_spec.rb +88 -0
- data/spec/models/communication_website_portfolio_project_localization_spec.rb +136 -0
- data/spec/models/communication_website_portfolio_project_spec.rb +88 -0
- data/spec/models/communication_website_post_category_localization_spec.rb +136 -0
- data/spec/models/communication_website_post_category_spec.rb +82 -0
- data/spec/models/one_ofcommunication_website_portfolio_category_localization_blocks_items_spec.rb +34 -0
- data/spec/models/one_ofcommunication_website_portfolio_project_localization_blocks_items_spec.rb +34 -0
- data/spec/models/one_ofcommunication_website_post_category_localization_blocks_items_spec.rb +34 -0
- data/spec/models/portfolio_categories_body_spec.rb +40 -0
- data/spec/models/portfolio_projects_body_spec.rb +40 -0
- data/spec/models/posts_categories_body_spec.rb +40 -0
- data/spec/models/projects_id_body_spec.rb +40 -0
- data/spec/models/projects_upsert_body_spec.rb +40 -0
- metadata +266 -116
- data/pkg/osuny_api-0.2.6.gem +0 -0
- data/pkg/osuny_api-1.0.0.gem +0 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Osuny
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.77
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
module OsunyApi
|
|
15
|
+
class CommunicationMediaOriginalBlob
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
attr_accessor :signed_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :filename
|
|
21
|
+
|
|
22
|
+
attr_accessor :content_type
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'id' => :'id',
|
|
28
|
+
:'signed_id' => :'signed_id',
|
|
29
|
+
:'filename' => :'filename',
|
|
30
|
+
:'content_type' => :'content_type'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Attribute type mapping.
|
|
35
|
+
def self.openapi_types
|
|
36
|
+
{
|
|
37
|
+
:'id' => :'Object',
|
|
38
|
+
:'signed_id' => :'Object',
|
|
39
|
+
:'filename' => :'Object',
|
|
40
|
+
:'content_type' => :'Object'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
:'id',
|
|
48
|
+
:'signed_id',
|
|
49
|
+
:'filename',
|
|
50
|
+
:'content_type'
|
|
51
|
+
])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OsunyApi::CommunicationMediaOriginalBlob` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OsunyApi::CommunicationMediaOriginalBlob`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
65
|
+
end
|
|
66
|
+
h[k.to_sym] = v
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'id')
|
|
70
|
+
self.id = attributes[:'id']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'signed_id')
|
|
74
|
+
self.signed_id = attributes[:'signed_id']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'filename')
|
|
78
|
+
self.filename = attributes[:'filename']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'content_type')
|
|
82
|
+
self.content_type = attributes[:'content_type']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
+
# @return Array for valid properties with the reasons
|
|
88
|
+
def list_invalid_properties
|
|
89
|
+
invalid_properties = Array.new
|
|
90
|
+
invalid_properties
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Check to see if the all the properties in the model are valid
|
|
94
|
+
# @return true if the model is valid
|
|
95
|
+
def valid?
|
|
96
|
+
true
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Checks equality by comparing each attribute.
|
|
100
|
+
# @param [Object] Object to be compared
|
|
101
|
+
def ==(o)
|
|
102
|
+
return true if self.equal?(o)
|
|
103
|
+
self.class == o.class &&
|
|
104
|
+
id == o.id &&
|
|
105
|
+
signed_id == o.signed_id &&
|
|
106
|
+
filename == o.filename &&
|
|
107
|
+
content_type == o.content_type
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# @see the `==` method
|
|
111
|
+
# @param [Object] Object to be compared
|
|
112
|
+
def eql?(o)
|
|
113
|
+
self == o
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Calculates hash code according to all attributes.
|
|
117
|
+
# @return [Integer] Hash code
|
|
118
|
+
def hash
|
|
119
|
+
[id, signed_id, filename, content_type].hash
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Builds the object from hash
|
|
123
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
124
|
+
# @return [Object] Returns the model itself
|
|
125
|
+
def self.build_from_hash(attributes)
|
|
126
|
+
new.build_from_hash(attributes)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Builds the object from hash
|
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
|
+
# @return [Object] Returns the model itself
|
|
132
|
+
def build_from_hash(attributes)
|
|
133
|
+
return nil unless attributes.is_a?(Hash)
|
|
134
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
135
|
+
if type =~ /\AArray<(.*)>/i
|
|
136
|
+
# check to ensure the input is an array given that the attribute
|
|
137
|
+
# is documented as an array but the input is not
|
|
138
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
139
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
140
|
+
end
|
|
141
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
142
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
143
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
144
|
+
self.send("#{key}=", nil)
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
self
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Deserializes the data based on type
|
|
152
|
+
# @param string type Data type
|
|
153
|
+
# @param string value Value to be deserialized
|
|
154
|
+
# @return [Object] Deserialized data
|
|
155
|
+
def _deserialize(type, value)
|
|
156
|
+
case type.to_sym
|
|
157
|
+
when :DateTime
|
|
158
|
+
DateTime.parse(value)
|
|
159
|
+
when :Date
|
|
160
|
+
Date.parse(value)
|
|
161
|
+
when :String
|
|
162
|
+
value.to_s
|
|
163
|
+
when :Integer
|
|
164
|
+
value.to_i
|
|
165
|
+
when :Float
|
|
166
|
+
value.to_f
|
|
167
|
+
when :Boolean
|
|
168
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
169
|
+
true
|
|
170
|
+
else
|
|
171
|
+
false
|
|
172
|
+
end
|
|
173
|
+
when :Object
|
|
174
|
+
# generic object (usually a Hash), return directly
|
|
175
|
+
value
|
|
176
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
177
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
178
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
179
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
180
|
+
k_type = Regexp.last_match[:k_type]
|
|
181
|
+
v_type = Regexp.last_match[:v_type]
|
|
182
|
+
{}.tap do |hash|
|
|
183
|
+
value.each do |k, v|
|
|
184
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
else # model
|
|
188
|
+
OsunyApi.const_get(type).build_from_hash(value)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Returns the string representation of the object
|
|
193
|
+
# @return [String] String presentation of the object
|
|
194
|
+
def to_s
|
|
195
|
+
to_hash.to_s
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
|
200
|
+
def to_body
|
|
201
|
+
to_hash
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Returns the object in the form of hash
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_hash
|
|
207
|
+
hash = {}
|
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
209
|
+
value = self.send(attr)
|
|
210
|
+
if value.nil?
|
|
211
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
212
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
hash[param] = _to_hash(value)
|
|
216
|
+
end
|
|
217
|
+
hash
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Outputs non-array value in the form of hash
|
|
221
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
222
|
+
# @param [Object] value Any valid value
|
|
223
|
+
# @return [Hash] Returns the value in the form of hash
|
|
224
|
+
def _to_hash(value)
|
|
225
|
+
if value.is_a?(Array)
|
|
226
|
+
value.compact.map { |v| _to_hash(v) }
|
|
227
|
+
elsif value.is_a?(Hash)
|
|
228
|
+
{}.tap do |hash|
|
|
229
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
230
|
+
end
|
|
231
|
+
elsif value.respond_to? :to_hash
|
|
232
|
+
value.to_hash
|
|
233
|
+
else
|
|
234
|
+
value
|
|
235
|
+
end
|
|
236
|
+
end end
|
|
237
|
+
end
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Osuny
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.77
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
module OsunyApi
|
|
15
|
+
class CommunicationMediasBody
|
|
16
|
+
attr_accessor :url
|
|
17
|
+
|
|
18
|
+
attr_accessor :file
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'url' => :'url',
|
|
24
|
+
:'file' => :'file'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Attribute type mapping.
|
|
29
|
+
def self.openapi_types
|
|
30
|
+
{
|
|
31
|
+
:'url' => :'Object',
|
|
32
|
+
:'file' => :'Object'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# List of attributes with nullable: true
|
|
37
|
+
def self.openapi_nullable
|
|
38
|
+
Set.new([
|
|
39
|
+
])
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Initializes the object
|
|
43
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
44
|
+
def initialize(attributes = {})
|
|
45
|
+
if (!attributes.is_a?(Hash))
|
|
46
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OsunyApi::CommunicationMediasBody` initialize method"
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
51
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
52
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OsunyApi::CommunicationMediasBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
53
|
+
end
|
|
54
|
+
h[k.to_sym] = v
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if attributes.key?(:'url')
|
|
58
|
+
self.url = attributes[:'url']
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
if attributes.key?(:'file')
|
|
62
|
+
self.file = attributes[:'file']
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
67
|
+
# @return Array for valid properties with the reasons
|
|
68
|
+
def list_invalid_properties
|
|
69
|
+
invalid_properties = Array.new
|
|
70
|
+
invalid_properties
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Check to see if the all the properties in the model are valid
|
|
74
|
+
# @return true if the model is valid
|
|
75
|
+
def valid?
|
|
76
|
+
true
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Checks equality by comparing each attribute.
|
|
80
|
+
# @param [Object] Object to be compared
|
|
81
|
+
def ==(o)
|
|
82
|
+
return true if self.equal?(o)
|
|
83
|
+
self.class == o.class &&
|
|
84
|
+
url == o.url &&
|
|
85
|
+
file == o.file
|
|
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 [Integer] Hash code
|
|
96
|
+
def hash
|
|
97
|
+
[url, file].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 self.build_from_hash(attributes)
|
|
104
|
+
new.build_from_hash(attributes)
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Builds the object from hash
|
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
109
|
+
# @return [Object] Returns the model itself
|
|
110
|
+
def build_from_hash(attributes)
|
|
111
|
+
return nil unless attributes.is_a?(Hash)
|
|
112
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
113
|
+
if type =~ /\AArray<(.*)>/i
|
|
114
|
+
# check to ensure the input is an array given that the attribute
|
|
115
|
+
# is documented as an array but the input is not
|
|
116
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
117
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
118
|
+
end
|
|
119
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
120
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
121
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
122
|
+
self.send("#{key}=", nil)
|
|
123
|
+
end
|
|
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
|
+
OsunyApi.const_get(type).build_from_hash(value)
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Returns the string representation of the object
|
|
171
|
+
# @return [String] String presentation of the object
|
|
172
|
+
def to_s
|
|
173
|
+
to_hash.to_s
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
|
178
|
+
def to_body
|
|
179
|
+
to_hash
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Returns the object in the form of hash
|
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
|
184
|
+
def to_hash
|
|
185
|
+
hash = {}
|
|
186
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
187
|
+
value = self.send(attr)
|
|
188
|
+
if value.nil?
|
|
189
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
190
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
hash[param] = _to_hash(value)
|
|
194
|
+
end
|
|
195
|
+
hash
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Outputs non-array value in the form of hash
|
|
199
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
200
|
+
# @param [Object] value Any valid value
|
|
201
|
+
# @return [Hash] Returns the value in the form of hash
|
|
202
|
+
def _to_hash(value)
|
|
203
|
+
if value.is_a?(Array)
|
|
204
|
+
value.compact.map { |v| _to_hash(v) }
|
|
205
|
+
elsif value.is_a?(Hash)
|
|
206
|
+
{}.tap do |hash|
|
|
207
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
208
|
+
end
|
|
209
|
+
elsif value.respond_to? :to_hash
|
|
210
|
+
value.to_hash
|
|
211
|
+
else
|
|
212
|
+
value
|
|
213
|
+
end
|
|
214
|
+
end end
|
|
215
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.77
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
@@ -17,6 +17,8 @@ module OsunyApi
|
|
|
17
17
|
|
|
18
18
|
attr_accessor :url
|
|
19
19
|
|
|
20
|
+
attr_accessor :hosting
|
|
21
|
+
|
|
20
22
|
attr_accessor :deuxfleurs
|
|
21
23
|
|
|
22
24
|
attr_accessor :features
|
|
@@ -32,11 +34,34 @@ module OsunyApi
|
|
|
32
34
|
|
|
33
35
|
attr_accessor :updated_at
|
|
34
36
|
|
|
37
|
+
class EnumAttributeValidator
|
|
38
|
+
attr_reader :datatype
|
|
39
|
+
attr_reader :allowable_values
|
|
40
|
+
|
|
41
|
+
def initialize(datatype, allowable_values)
|
|
42
|
+
@allowable_values = allowable_values.map do |value|
|
|
43
|
+
case datatype.to_s
|
|
44
|
+
when /Integer/i
|
|
45
|
+
value.to_i
|
|
46
|
+
when /Float/i
|
|
47
|
+
value.to_f
|
|
48
|
+
else
|
|
49
|
+
value
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def valid?(value)
|
|
55
|
+
!value || allowable_values.include?(value)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
35
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
60
|
def self.attribute_map
|
|
37
61
|
{
|
|
38
62
|
:'id' => :'id',
|
|
39
63
|
:'url' => :'url',
|
|
64
|
+
:'hosting' => :'hosting',
|
|
40
65
|
:'deuxfleurs' => :'deuxfleurs',
|
|
41
66
|
:'features' => :'features',
|
|
42
67
|
:'git' => :'git',
|
|
@@ -52,6 +77,7 @@ module OsunyApi
|
|
|
52
77
|
{
|
|
53
78
|
:'id' => :'Object',
|
|
54
79
|
:'url' => :'Object',
|
|
80
|
+
:'hosting' => :'Object',
|
|
55
81
|
:'deuxfleurs' => :'Object',
|
|
56
82
|
:'features' => :'Object',
|
|
57
83
|
:'git' => :'Object',
|
|
@@ -66,6 +92,7 @@ module OsunyApi
|
|
|
66
92
|
def self.openapi_nullable
|
|
67
93
|
Set.new([
|
|
68
94
|
:'url',
|
|
95
|
+
:'hosting',
|
|
69
96
|
])
|
|
70
97
|
end
|
|
71
98
|
|
|
@@ -92,6 +119,10 @@ module OsunyApi
|
|
|
92
119
|
self.url = attributes[:'url']
|
|
93
120
|
end
|
|
94
121
|
|
|
122
|
+
if attributes.key?(:'hosting')
|
|
123
|
+
self.hosting = attributes[:'hosting']
|
|
124
|
+
end
|
|
125
|
+
|
|
95
126
|
if attributes.key?(:'deuxfleurs')
|
|
96
127
|
self.deuxfleurs = attributes[:'deuxfleurs']
|
|
97
128
|
end
|
|
@@ -133,9 +164,21 @@ module OsunyApi
|
|
|
133
164
|
# Check to see if the all the properties in the model are valid
|
|
134
165
|
# @return true if the model is valid
|
|
135
166
|
def valid?
|
|
167
|
+
hosting_validator = EnumAttributeValidator.new('Object', ['undefined', 'deuxfleurs', 'apache', 'nginx', 'netlify'])
|
|
168
|
+
return false unless hosting_validator.valid?(@hosting)
|
|
136
169
|
true
|
|
137
170
|
end
|
|
138
171
|
|
|
172
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
173
|
+
# @param [Object] hosting Object to be assigned
|
|
174
|
+
def hosting=(hosting)
|
|
175
|
+
validator = EnumAttributeValidator.new('Object', ['undefined', 'deuxfleurs', 'apache', 'nginx', 'netlify'])
|
|
176
|
+
unless validator.valid?(hosting)
|
|
177
|
+
fail ArgumentError, "invalid value for \"hosting\", must be one of #{validator.allowable_values}."
|
|
178
|
+
end
|
|
179
|
+
@hosting = hosting
|
|
180
|
+
end
|
|
181
|
+
|
|
139
182
|
# Checks equality by comparing each attribute.
|
|
140
183
|
# @param [Object] Object to be compared
|
|
141
184
|
def ==(o)
|
|
@@ -143,6 +186,7 @@ module OsunyApi
|
|
|
143
186
|
self.class == o.class &&
|
|
144
187
|
id == o.id &&
|
|
145
188
|
url == o.url &&
|
|
189
|
+
hosting == o.hosting &&
|
|
146
190
|
deuxfleurs == o.deuxfleurs &&
|
|
147
191
|
features == o.features &&
|
|
148
192
|
git == o.git &&
|
|
@@ -161,7 +205,7 @@ module OsunyApi
|
|
|
161
205
|
# Calculates hash code according to all attributes.
|
|
162
206
|
# @return [Integer] Hash code
|
|
163
207
|
def hash
|
|
164
|
-
[id, url, deuxfleurs, features, git, showcase, localizations, created_at, updated_at].hash
|
|
208
|
+
[id, url, hosting, deuxfleurs, features, git, showcase, localizations, created_at, updated_at].hash
|
|
165
209
|
end
|
|
166
210
|
|
|
167
211
|
# Builds the object from hash
|