esi_client 1.2.0 → 1.3.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/README.md +157 -232
- data/docs/AllianceApi.md +3 -3
- data/docs/AssetsApi.md +336 -5
- data/docs/BookmarksApi.md +135 -5
- data/docs/CalendarApi.md +84 -18
- data/docs/CharacterApi.md +225 -34
- data/docs/ClonesApi.md +66 -3
- data/docs/ContactsApi.md +94 -29
- data/docs/ContractsApi.md +400 -0
- data/docs/CorporationApi.md +536 -24
- data/docs/DogmaApi.md +2 -2
- data/docs/FactionWarfareApi.md +326 -0
- data/docs/FittingsApi.md +15 -15
- data/docs/FleetsApi.md +91 -28
- data/docs/Forbidden.md +9 -0
- data/docs/GetCharactersCharacterIdAttributesOk.md +15 -0
- data/docs/GetCharactersCharacterIdBlueprints200Ok.md +6 -6
- data/docs/GetCharactersCharacterIdCalendarEventIdAttendees200Ok.md +9 -0
- data/docs/GetCharactersCharacterIdChatChannels200Ok.md +1 -1
- data/docs/GetCharactersCharacterIdContracts200Ok.md +29 -0
- data/docs/GetCharactersCharacterIdContractsContractIdBids200Ok.md +11 -0
- data/docs/GetCharactersCharacterIdContractsContractIdItems200Ok.md +13 -0
- data/docs/GetCharactersCharacterIdCorporationhistory200Ok.md +3 -3
- data/docs/GetCharactersCharacterIdFatigueOk.md +10 -0
- data/docs/GetCharactersCharacterIdFleetNotFound.md +8 -0
- data/docs/GetCharactersCharacterIdFleetOk.md +11 -0
- data/docs/GetCharactersCharacterIdNotifications200Ok.md +14 -0
- data/docs/GetCharactersCharacterIdNotificationsContacts200Ok.md +12 -0
- data/docs/GetCharactersCharacterIdPlanetsPlanetIdContent.md +9 -0
- data/docs/GetCharactersCharacterIdPlanetsPlanetIdPin.md +1 -0
- data/docs/GetCharactersCharacterIdPlanetsPlanetIdRoute.md +1 -1
- data/docs/GetCharactersCharacterIdWalletJournal200Ok.md +20 -0
- data/docs/GetCharactersCharacterIdWalletJournalExtraInfo.md +19 -0
- data/docs/GetCharactersCharacterIdWalletTransactions200Ok.md +17 -0
- data/docs/GetCorporationsCorporationIdAlliancehistory200Ok.md +2 -1
- data/docs/GetCorporationsCorporationIdAssets200Ok.md +14 -0
- data/docs/GetCorporationsCorporationIdBlueprints200Ok.md +15 -0
- data/docs/GetCorporationsCorporationIdBookmarks200Ok.md +16 -0
- data/docs/GetCorporationsCorporationIdBookmarksCoordinates.md +10 -0
- data/docs/GetCorporationsCorporationIdBookmarksFolders200Ok.md +10 -0
- data/docs/GetCorporationsCorporationIdBookmarksItem.md +9 -0
- data/docs/GetCorporationsCorporationIdContacts200Ok.md +12 -0
- data/docs/GetCorporationsCorporationIdContainersLogs200Ok.md +19 -0
- data/docs/GetCorporationsCorporationIdContracts200Ok.md +29 -0
- data/docs/GetCorporationsCorporationIdContractsContractIdBids200Ok.md +11 -0
- data/docs/GetCorporationsCorporationIdContractsContractIdItems200Ok.md +13 -0
- data/docs/GetCorporationsCorporationIdDivisionsHangar.md +9 -0
- data/docs/GetCorporationsCorporationIdDivisionsOk.md +9 -0
- data/docs/GetCorporationsCorporationIdDivisionsWallet.md +9 -0
- data/docs/GetCorporationsCorporationIdIndustryJobs200Ok.md +29 -0
- data/docs/GetCorporationsCorporationIdKillmailsRecent200Ok.md +9 -0
- data/docs/GetCorporationsCorporationIdMembertracking200Ok.md +14 -0
- data/docs/GetCorporationsCorporationIdOrders200Ok.md +22 -0
- data/docs/GetCorporationsCorporationIdShareholders200Ok.md +10 -0
- data/docs/GetCorporationsCorporationIdStandings200Ok.md +10 -0
- data/docs/GetCorporationsCorporationIdTitles200Ok.md +17 -0
- data/docs/GetCorporationsCorporationIdWallets200Ok.md +9 -0
- data/docs/GetCorporationsCorporationIdWalletsDivisionJournal200Ok.md +20 -0
- data/docs/GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo.md +19 -0
- data/docs/GetCorporationsCorporationIdWalletsDivisionTransactions200Ok.md +16 -0
- data/docs/GetDogmaEffectsEffectIdModifier.md +5 -4
- data/docs/GetFwLeaderboardsActiveTotal.md +9 -0
- data/docs/GetFwLeaderboardsActiveTotal1.md +9 -0
- data/docs/GetFwLeaderboardsCharactersActiveTotal.md +9 -0
- data/docs/GetFwLeaderboardsCharactersActiveTotal1.md +9 -0
- data/docs/GetFwLeaderboardsCharactersKills.md +10 -0
- data/docs/GetFwLeaderboardsCharactersLastWeek.md +9 -0
- data/docs/GetFwLeaderboardsCharactersLastWeek1.md +9 -0
- data/docs/GetFwLeaderboardsCharactersOk.md +9 -0
- data/docs/GetFwLeaderboardsCharactersVictoryPoints.md +10 -0
- data/docs/GetFwLeaderboardsCharactersYesterday.md +9 -0
- data/docs/GetFwLeaderboardsCharactersYesterday1.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsActiveTotal.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsActiveTotal1.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsKills.md +10 -0
- data/docs/GetFwLeaderboardsCorporationsLastWeek.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsLastWeek1.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsOk.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsVictoryPoints.md +10 -0
- data/docs/GetFwLeaderboardsCorporationsYesterday.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsYesterday1.md +9 -0
- data/docs/GetFwLeaderboardsKills.md +10 -0
- data/docs/GetFwLeaderboardsLastWeek.md +9 -0
- data/docs/GetFwLeaderboardsLastWeek1.md +9 -0
- data/docs/GetFwLeaderboardsOk.md +9 -0
- data/docs/GetFwLeaderboardsVictoryPoints.md +10 -0
- data/docs/GetFwLeaderboardsYesterday.md +9 -0
- data/docs/GetFwLeaderboardsYesterday1.md +9 -0
- data/docs/GetFwStats200Ok.md +12 -0
- data/docs/GetFwStatsKills.md +10 -0
- data/docs/GetFwStatsVictoryPoints.md +10 -0
- data/docs/GetFwSystems200Ok.md +13 -0
- data/docs/GetFwWars200Ok.md +9 -0
- data/docs/GetUniverseStarsStarIdOk.md +15 -0
- data/docs/GetUniverseSystemKills200Ok.md +1 -1
- data/docs/GetUniverseSystemsSystemIdOk.md +3 -1
- data/docs/GetUniverseTypesTypeIdOk.md +2 -0
- data/docs/IncursionsApi.md +1 -1
- data/docs/IndustryApi.md +70 -3
- data/docs/InsuranceApi.md +1 -1
- data/docs/InternalServerError.md +8 -0
- data/docs/KillmailsApi.md +71 -6
- data/docs/LocationApi.md +7 -7
- data/docs/LoyaltyApi.md +8 -8
- data/docs/MailApi.md +31 -31
- data/docs/MarketApi.md +134 -11
- data/docs/OpportunitiesApi.md +5 -5
- data/docs/PlanetaryInteractionApi.md +12 -12
- data/docs/PostCharactersAffiliationNotFound.md +8 -0
- data/docs/PostCharactersCharacterIdAssetsLocations200Ok.md +11 -0
- data/docs/PostCharactersCharacterIdAssetsNames200Ok.md +9 -0
- data/docs/PostCharactersCharacterIdMailLabelsLabel.md +1 -1
- data/docs/PostCorporationsCorporationIdAssetsLocations200Ok.md +11 -0
- data/docs/PostCorporationsCorporationIdAssetsNames200Ok.md +9 -0
- data/docs/PostFleetsFleetIdMembersInvitation.md +1 -1
- data/docs/PutFleetsFleetIdMembersMemberIdMovement.md +1 -1
- data/docs/RoutesApi.md +1 -1
- data/docs/SearchApi.md +9 -9
- data/docs/SkillsApi.md +70 -7
- data/docs/SovereigntyApi.md +1 -1
- data/docs/StatusApi.md +1 -1
- data/docs/UniverseApi.md +66 -10
- data/docs/UserInterfaceApi.md +11 -11
- data/docs/WalletApi.md +341 -12
- data/docs/WarsApi.md +3 -3
- data/esi_client-1.2.0.gem +0 -0
- data/lib/esi_client.rb +83 -212
- data/lib/esi_client/api/alliance_api.rb +28 -19
- data/lib/esi_client/api/assets_api.rb +381 -8
- data/lib/esi_client/api/bookmarks_api.rb +158 -11
- data/lib/esi_client/api/calendar_api.rb +114 -27
- data/lib/esi_client/api/character_api.rb +306 -72
- data/lib/esi_client/api/clones_api.rb +77 -6
- data/lib/esi_client/api/contacts_api.rb +139 -51
- data/lib/esi_client/api/contracts_api.rb +458 -0
- data/lib/esi_client/api/corporation_api.rb +629 -56
- data/lib/esi_client/api/dogma_api.rb +16 -11
- data/lib/esi_client/api/faction_warfare_api.rb +377 -0
- data/lib/esi_client/api/fittings_api.rb +32 -23
- data/lib/esi_client/api/fleets_api.rb +201 -82
- data/lib/esi_client/api/incursions_api.rb +4 -3
- data/lib/esi_client/api/industry_api.rb +87 -10
- data/lib/esi_client/api/insurance_api.rb +5 -4
- data/lib/esi_client/api/killmails_api.rb +91 -13
- data/lib/esi_client/api/location_api.rb +23 -16
- data/lib/esi_client/api/loyalty_api.rb +20 -15
- data/lib/esi_client/api/mail_api.rb +87 -56
- data/lib/esi_client/api/market_api.rb +188 -34
- data/lib/esi_client/api/opportunities_api.rb +26 -19
- data/lib/esi_client/api/planetary_interaction_api.rb +28 -19
- data/lib/esi_client/api/routes_api.rb +13 -8
- data/lib/esi_client/api/search_api.rb +37 -26
- data/lib/esi_client/api/skills_api.rb +86 -13
- data/lib/esi_client/api/sovereignty_api.rb +8 -7
- data/lib/esi_client/api/status_api.rb +4 -3
- data/lib/esi_client/api/universe_api.rb +173 -89
- data/lib/esi_client/api/user_interface_api.rb +43 -28
- data/lib/esi_client/api/wallet_api.rb +401 -18
- data/lib/esi_client/api/wars_api.rb +16 -11
- data/lib/esi_client/api_client.rb +40 -27
- data/lib/esi_client/api_error.rb +2 -1
- data/lib/esi_client/configuration.rb +9 -2
- data/lib/esi_client/models/delete_characters_character_id_mail_labels_label_id_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/delete_fleets_fleet_id_members_member_id_not_found.rb +2 -1
- data/lib/esi_client/models/delete_fleets_fleet_id_squads_squad_id_not_found.rb +2 -1
- data/lib/esi_client/models/delete_fleets_fleet_id_wings_wing_id_not_found.rb +2 -1
- data/lib/esi_client/models/forbidden.rb +204 -0
- data/lib/esi_client/models/get_alliances_alliance_id_icons_not_found.rb +2 -1
- data/lib/esi_client/models/get_alliances_alliance_id_icons_ok.rb +2 -1
- data/lib/esi_client/models/get_alliances_alliance_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_alliances_alliance_id_ok.rb +2 -1
- data/lib/esi_client/models/get_alliances_names_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_agents_research_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_assets_200_ok.rb +4 -3
- data/lib/esi_client/models/get_characters_character_id_attributes_ok.rb +284 -0
- data/lib/esi_client/models/get_characters_character_id_blueprints_200_ok.rb +102 -7
- data/lib/esi_client/models/get_characters_character_id_bookmarks_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_bookmarks_coordinates.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_bookmarks_folders_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_bookmarks_item.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_bookmarks_target.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_calendar_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_calendar_event_id_attendees_200_ok.rb +232 -0
- data/lib/esi_client/models/get_characters_character_id_calendar_event_id_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_chat_channels_200_ok.rb +3 -2
- data/lib/esi_client/models/get_characters_character_id_chat_channels_allowed.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_chat_channels_blocked.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_chat_channels_muted.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_chat_channels_operator.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_clones_home_location.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_clones_jump_clone.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_clones_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_contacts_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_contacts_labels_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_contracts_200_ok.rb +511 -0
- data/lib/esi_client/models/get_characters_character_id_contracts_contract_id_bids_200_ok.rb +239 -0
- data/lib/esi_client/models/get_characters_character_id_contracts_contract_id_items_200_ok.rb +264 -0
- data/lib/esi_client/models/get_characters_character_id_corporationhistory_200_ok.rb +17 -1
- data/lib/esi_client/models/get_characters_character_id_fatigue_ok.rb +209 -0
- data/lib/esi_client/models/get_characters_character_id_fittings_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_fittings_item.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_fleet_not_found.rb +189 -0
- data/lib/esi_client/models/get_characters_character_id_fleet_ok.rb +272 -0
- data/lib/esi_client/models/get_characters_character_id_industry_jobs_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_killmails_recent_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_location_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_loyalty_points_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_labels_label.rb +4 -3
- data/lib/esi_client/models/get_characters_character_id_mail_labels_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_lists_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_mail_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_mail_id_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_mail_id_recipient.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_recipient.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_medals_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_medals_graphic.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_notifications_200_ok.rb +319 -0
- data/lib/esi_client/models/get_characters_character_id_notifications_contacts_200_ok.rb +254 -0
- data/lib/esi_client/models/get_characters_character_id_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_opportunities_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_orders_200_ok.rb +6 -5
- data/lib/esi_client/models/get_characters_character_id_planets_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_content.rb +209 -0
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_extractor_details.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_factory_details.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_head.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_link.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_pin.rb +15 -2
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_route.rb +4 -3
- data/lib/esi_client/models/get_characters_character_id_portrait_not_found.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_portrait_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_search_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_ship_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_skillqueue_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_skills_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_skills_skill.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_standings_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_wallet_journal_200_ok.rb +380 -0
- data/lib/esi_client/models/get_characters_character_id_wallet_journal_extra_info.rb +299 -0
- data/lib/esi_client/models/get_characters_character_id_wallet_transactions_200_ok.rb +329 -0
- data/lib/esi_client/models/get_characters_names_200_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_alliancehistory_200_ok.rb +20 -8
- data/lib/esi_client/models/get_corporations_corporation_id_assets_200_ok.rb +324 -0
- data/lib/esi_client/models/get_corporations_corporation_id_blueprints_200_ok.rb +426 -0
- data/lib/esi_client/models/get_corporations_corporation_id_bookmarks_200_ok.rb +297 -0
- data/lib/esi_client/models/get_corporations_corporation_id_bookmarks_coordinates.rb +224 -0
- data/lib/esi_client/models/get_corporations_corporation_id_bookmarks_folders_200_ok.rb +219 -0
- data/lib/esi_client/models/get_corporations_corporation_id_bookmarks_item.rb +209 -0
- data/lib/esi_client/models/get_corporations_corporation_id_contacts_200_ok.rb +277 -0
- data/lib/esi_client/models/get_corporations_corporation_id_containers_logs_200_ok.rb +391 -0
- data/lib/esi_client/models/get_corporations_corporation_id_contracts_200_ok.rb +511 -0
- data/lib/esi_client/models/get_corporations_corporation_id_contracts_contract_id_bids_200_ok.rb +239 -0
- data/lib/esi_client/models/get_corporations_corporation_id_contracts_contract_id_items_200_ok.rb +264 -0
- data/lib/esi_client/models/get_corporations_corporation_id_divisions_hangar.rb +240 -0
- data/lib/esi_client/models/get_corporations_corporation_id_divisions_ok.rb +203 -0
- data/lib/esi_client/models/get_corporations_corporation_id_divisions_wallet.rb +240 -0
- data/lib/esi_client/models/get_corporations_corporation_id_icons_not_found.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_icons_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_industry_jobs_200_ok.rb +502 -0
- data/lib/esi_client/models/get_corporations_corporation_id_killmails_recent_200_ok.rb +209 -0
- data/lib/esi_client/models/get_corporations_corporation_id_members_200_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_membertracking_200_ok.rb +254 -0
- data/lib/esi_client/models/get_corporations_corporation_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_orders_200_ok.rb +477 -0
- data/lib/esi_client/models/get_corporations_corporation_id_roles_200_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_shareholders_200_ok.rb +257 -0
- data/lib/esi_client/models/get_corporations_corporation_id_standings_200_ok.rb +285 -0
- data/lib/esi_client/models/get_corporations_corporation_id_structures_200_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_structures_current_vul.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_structures_next_vul.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_structures_service.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_titles_200_ok.rb +316 -0
- data/lib/esi_client/models/get_corporations_corporation_id_wallets_200_ok.rb +237 -0
- data/lib/esi_client/models/get_corporations_corporation_id_wallets_division_journal_200_ok.rb +380 -0
- data/lib/esi_client/models/get_corporations_corporation_id_wallets_division_journal_extra_info.rb +299 -0
- data/lib/esi_client/models/get_corporations_corporation_id_wallets_division_transactions_200_ok.rb +314 -0
- data/lib/esi_client/models/get_corporations_names_200_ok.rb +2 -1
- data/lib/esi_client/models/get_dogma_attributes_attribute_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_dogma_attributes_attribute_id_ok.rb +2 -1
- data/lib/esi_client/models/get_dogma_effects_effect_id_modifier.rb +13 -22
- data/lib/esi_client/models/get_dogma_effects_effect_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_dogma_effects_effect_id_ok.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_members_200_ok.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_members_not_found.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_ok.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_wings_200_ok.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_wings_not_found.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_wings_squad.rb +2 -1
- data/lib/esi_client/models/get_fw_leaderboards_active_total.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_active_total_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_active_total.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_active_total_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_kills.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_last_week.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_last_week_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_ok.rb +197 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_victory_points.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_yesterday.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_yesterday_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_active_total.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_active_total_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_kills.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_last_week.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_last_week_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_ok.rb +197 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_victory_points.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_yesterday.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_yesterday_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_kills.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_last_week.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_last_week_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_ok.rb +197 -0
- data/lib/esi_client/models/get_fw_leaderboards_victory_points.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_yesterday.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_yesterday_1.rb +199 -0
- data/lib/esi_client/models/get_fw_stats_200_ok.rb +242 -0
- data/lib/esi_client/models/get_fw_stats_kills.rb +224 -0
- data/lib/esi_client/models/get_fw_stats_victory_points.rb +224 -0
- data/lib/esi_client/models/get_fw_systems_200_ok.rb +269 -0
- data/lib/esi_client/models/get_fw_wars_200_ok.rb +209 -0
- data/lib/esi_client/models/get_incursions_200_ok.rb +2 -1
- data/lib/esi_client/models/get_industry_facilities_200_ok.rb +2 -1
- data/lib/esi_client/models/get_industry_systems_200_ok.rb +2 -1
- data/lib/esi_client/models/get_industry_systems_cost_indice.rb +2 -1
- data/lib/esi_client/models/get_insurance_prices_200_ok.rb +2 -1
- data/lib/esi_client/models/get_insurance_prices_level.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_attacker.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_item.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_item_1.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_ok.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_position.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_victim.rb +2 -1
- data/lib/esi_client/models/get_loyalty_stores_corporation_id_offers_200_ok.rb +2 -1
- data/lib/esi_client/models/get_loyalty_stores_corporation_id_offers_required_item.rb +2 -1
- data/lib/esi_client/models/get_markets_groups_market_group_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_markets_groups_market_group_id_ok.rb +2 -1
- data/lib/esi_client/models/get_markets_prices_200_ok.rb +2 -1
- data/lib/esi_client/models/get_markets_region_id_history_200_ok.rb +2 -1
- data/lib/esi_client/models/get_markets_region_id_history_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/get_markets_region_id_orders_200_ok.rb +2 -1
- data/lib/esi_client/models/get_markets_region_id_orders_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/get_markets_structures_structure_id_200_ok.rb +2 -1
- data/lib/esi_client/models/get_opportunities_groups_group_id_ok.rb +2 -1
- data/lib/esi_client/models/get_opportunities_tasks_task_id_ok.rb +2 -1
- data/lib/esi_client/models/get_route_origin_destination_not_found.rb +2 -1
- data/lib/esi_client/models/get_search_ok.rb +2 -1
- data/lib/esi_client/models/get_sovereignty_campaigns_200_ok.rb +2 -1
- data/lib/esi_client/models/get_sovereignty_campaigns_participant.rb +2 -1
- data/lib/esi_client/models/get_sovereignty_map_200_ok.rb +2 -1
- data/lib/esi_client/models/get_sovereignty_structures_200_ok.rb +2 -1
- data/lib/esi_client/models/get_status_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_bloodlines_200_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_categories_category_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_categories_category_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_constellations_constellation_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_constellations_constellation_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_constellations_constellation_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_factions_200_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_graphics_graphic_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_graphics_graphic_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_groups_group_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_groups_group_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_moons_moon_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_moons_moon_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_moons_moon_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_planets_planet_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_planets_planet_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_planets_planet_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_races_200_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_regions_region_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_regions_region_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_schematics_schematic_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_schematics_schematic_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_stargates_stargate_id_destination.rb +2 -1
- data/lib/esi_client/models/get_universe_stargates_stargate_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_stargates_stargate_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_stargates_stargate_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_stars_star_id_ok.rb +332 -0
- data/lib/esi_client/models/get_universe_stations_station_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_stations_station_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_stations_station_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_structures_structure_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_structures_structure_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_structures_structure_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_system_jumps_200_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_system_kills_200_ok.rb +3 -2
- data/lib/esi_client/models/get_universe_systems_system_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_systems_system_id_ok.rb +28 -5
- data/lib/esi_client/models/get_universe_systems_system_id_planet.rb +2 -1
- data/lib/esi_client/models/get_universe_systems_system_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_types_type_id_dogma_attribute.rb +2 -1
- data/lib/esi_client/models/get_universe_types_type_id_dogma_effect.rb +2 -1
- data/lib/esi_client/models/get_universe_types_type_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_types_type_id_ok.rb +23 -2
- data/lib/esi_client/models/get_wars_war_id_aggressor.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_ally.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_defender.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_killmails_200_ok.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_killmails_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_ok.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/internal_server_error.rb +194 -0
- data/lib/esi_client/models/post_characters_affiliation_200_ok.rb +2 -1
- data/lib/esi_client/models/post_characters_affiliation_not_found.rb +189 -0
- data/lib/esi_client/models/post_characters_character_id_assets_locations_200_ok.rb +239 -0
- data/lib/esi_client/models/post_characters_character_id_assets_names_200_ok.rb +209 -0
- data/lib/esi_client/models/post_characters_character_id_cspa_characters.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_cspa_created.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_fittings_created.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_fittings_fitting.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_fittings_item.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_mail_bad_request.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_mail_labels_label.rb +5 -4
- data/lib/esi_client/models/post_characters_character_id_mail_mail.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_mail_recipient.rb +2 -1
- data/lib/esi_client/models/post_corporations_corporation_id_assets_locations_200_ok.rb +239 -0
- data/lib/esi_client/models/post_corporations_corporation_id_assets_names_200_ok.rb +209 -0
- data/lib/esi_client/models/post_fleets_fleet_id_members_invitation.rb +3 -2
- data/lib/esi_client/models/post_fleets_fleet_id_members_not_found.rb +2 -1
- data/lib/esi_client/models/post_fleets_fleet_id_members_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/post_fleets_fleet_id_wings_created.rb +2 -1
- data/lib/esi_client/models/post_fleets_fleet_id_wings_not_found.rb +2 -1
- data/lib/esi_client/models/post_fleets_fleet_id_wings_wing_id_squads_created.rb +2 -1
- data/lib/esi_client/models/post_fleets_fleet_id_wings_wing_id_squads_not_found.rb +2 -1
- data/lib/esi_client/models/post_ui_openwindow_newmail_new_mail.rb +2 -1
- data/lib/esi_client/models/post_ui_openwindow_newmail_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/post_universe_names_200_ok.rb +2 -1
- data/lib/esi_client/models/post_universe_names_not_found.rb +2 -1
- data/lib/esi_client/models/put_characters_character_id_calendar_event_id_response.rb +2 -1
- data/lib/esi_client/models/put_characters_character_id_mail_mail_id_bad_request.rb +2 -1
- data/lib/esi_client/models/put_characters_character_id_mail_mail_id_contents.rb +2 -1
- data/lib/esi_client/models/put_corporations_corporation_id_structures_structure_id_new_schedule.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_bad_request.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_members_member_id_movement.rb +3 -2
- data/lib/esi_client/models/put_fleets_fleet_id_members_member_id_not_found.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_members_member_id_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_new_settings.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_not_found.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_squads_squad_id_naming.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_squads_squad_id_not_found.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_wings_wing_id_naming.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_wings_wing_id_not_found.rb +2 -1
- data/lib/esi_client/version.rb +3 -2
- data/spec/api/contracts_api_spec.rb +136 -0
- data/spec/api/faction_warfare_api_spec.rb +119 -0
- data/spec/models/forbidden_spec.rb +48 -0
- data/spec/models/get_characters_character_id_attributes_ok_spec.rb +84 -0
- data/spec/models/get_characters_character_id_calendar_event_id_attendees_200_ok_spec.rb +52 -0
- data/spec/models/get_characters_character_id_contracts_200_ok_spec.rb +180 -0
- data/spec/models/get_characters_character_id_contracts_contract_id_bids_200_ok_spec.rb +60 -0
- data/spec/models/get_characters_character_id_contracts_contract_id_items_200_ok_spec.rb +72 -0
- data/spec/models/get_characters_character_id_fatigue_ok_spec.rb +54 -0
- data/spec/models/get_characters_character_id_fleet_not_found_spec.rb +42 -0
- data/spec/models/get_characters_character_id_fleet_ok_spec.rb +64 -0
- data/spec/models/get_characters_character_id_notifications_200_ok_spec.rb +86 -0
- data/spec/models/get_characters_character_id_notifications_contacts_200_ok_spec.rb +66 -0
- data/spec/models/get_characters_character_id_planets_planet_id_content_spec.rb +48 -0
- data/spec/models/get_characters_character_id_wallet_journal_200_ok_spec.rb +126 -0
- data/spec/models/get_characters_character_id_wallet_journal_extra_info_spec.rb +108 -0
- data/spec/models/get_characters_character_id_wallet_transactions_200_ok_spec.rb +96 -0
- data/spec/models/get_corporations_corporation_id_assets_200_ok_spec.rb +86 -0
- data/spec/models/get_corporations_corporation_id_blueprints_200_ok_spec.rb +88 -0
- data/spec/models/get_corporations_corporation_id_bookmarks_200_ok_spec.rb +90 -0
- data/spec/models/get_corporations_corporation_id_bookmarks_coordinates_spec.rb +54 -0
- data/spec/models/get_corporations_corporation_id_bookmarks_folders_200_ok_spec.rb +54 -0
- data/spec/models/get_corporations_corporation_id_bookmarks_item_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_contacts_200_ok_spec.rb +70 -0
- data/spec/models/get_corporations_corporation_id_containers_logs_200_ok_spec.rb +120 -0
- data/spec/models/get_corporations_corporation_id_contracts_200_ok_spec.rb +180 -0
- data/spec/models/get_corporations_corporation_id_contracts_contract_id_bids_200_ok_spec.rb +60 -0
- data/spec/models/get_corporations_corporation_id_contracts_contract_id_items_200_ok_spec.rb +72 -0
- data/spec/models/get_corporations_corporation_id_divisions_hangar_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_divisions_ok_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_divisions_wallet_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_industry_jobs_200_ok_spec.rb +172 -0
- data/spec/models/get_corporations_corporation_id_killmails_recent_200_ok_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_membertracking_200_ok_spec.rb +78 -0
- data/spec/models/get_corporations_corporation_id_orders_200_ok_spec.rb +134 -0
- data/spec/models/get_corporations_corporation_id_shareholders_200_ok_spec.rb +58 -0
- data/spec/models/get_corporations_corporation_id_standings_200_ok_spec.rb +58 -0
- data/spec/models/get_corporations_corporation_id_titles_200_ok_spec.rb +128 -0
- data/spec/models/get_corporations_corporation_id_wallets_200_ok_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_wallets_division_journal_200_ok_spec.rb +126 -0
- data/spec/models/get_corporations_corporation_id_wallets_division_journal_extra_info_spec.rb +108 -0
- data/spec/models/get_corporations_corporation_id_wallets_division_transactions_200_ok_spec.rb +90 -0
- data/spec/models/get_fw_leaderboards_active_total_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_active_total_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_active_total_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_active_total_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_kills_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_characters_last_week_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_last_week_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_ok_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_victory_points_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_characters_yesterday_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_yesterday_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_active_total_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_active_total_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_kills_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_corporations_last_week_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_last_week_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_ok_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_victory_points_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_corporations_yesterday_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_yesterday_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_kills_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_last_week_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_last_week_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_ok_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_victory_points_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_yesterday_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_yesterday_spec.rb +48 -0
- data/spec/models/get_fw_stats_200_ok_spec.rb +66 -0
- data/spec/models/get_fw_stats_kills_spec.rb +54 -0
- data/spec/models/get_fw_stats_victory_points_spec.rb +54 -0
- data/spec/models/get_fw_systems_200_ok_spec.rb +72 -0
- data/spec/models/get_fw_wars_200_ok_spec.rb +48 -0
- data/spec/models/get_universe_stars_star_id_ok_spec.rb +88 -0
- data/spec/models/internal_server_error_spec.rb +42 -0
- data/spec/models/post_characters_affiliation_not_found_spec.rb +42 -0
- data/spec/models/post_characters_character_id_assets_locations_200_ok_spec.rb +60 -0
- data/spec/models/post_characters_character_id_assets_names_200_ok_spec.rb +48 -0
- data/spec/models/post_corporations_corporation_id_assets_locations_200_ok_spec.rb +60 -0
- data/spec/models/post_corporations_corporation_id_assets_names_200_ok_spec.rb +48 -0
- metadata +327 -2
@@ -0,0 +1,240 @@
|
|
1
|
+
=begin
|
2
|
+
#EVE Swagger Interface
|
3
|
+
|
4
|
+
#An OpenAPI for EVE Online
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.6.2
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module ESIClient
|
16
|
+
# hangar object
|
17
|
+
class GetCorporationsCorporationIdDivisionsHangar
|
18
|
+
# division integer
|
19
|
+
attr_accessor :division
|
20
|
+
|
21
|
+
# name string
|
22
|
+
attr_accessor :name
|
23
|
+
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'division' => :'division',
|
29
|
+
:'name' => :'name'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.swagger_types
|
35
|
+
{
|
36
|
+
:'division' => :'Integer',
|
37
|
+
:'name' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
|
+
|
49
|
+
if attributes.has_key?(:'division')
|
50
|
+
self.division = attributes[:'division']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'name')
|
54
|
+
self.name = attributes[:'name']
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
+
# @return Array for valid properies with the reasons
|
61
|
+
def list_invalid_properties
|
62
|
+
invalid_properties = Array.new
|
63
|
+
if !@division.nil? && @division > 7
|
64
|
+
invalid_properties.push("invalid value for 'division', must be smaller than or equal to 7.")
|
65
|
+
end
|
66
|
+
|
67
|
+
if !@division.nil? && @division < 1
|
68
|
+
invalid_properties.push("invalid value for 'division', must be greater than or equal to 1.")
|
69
|
+
end
|
70
|
+
|
71
|
+
if !@name.nil? && @name.to_s.length > 50
|
72
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
73
|
+
end
|
74
|
+
|
75
|
+
return invalid_properties
|
76
|
+
end
|
77
|
+
|
78
|
+
# Check to see if the all the properties in the model are valid
|
79
|
+
# @return true if the model is valid
|
80
|
+
def valid?
|
81
|
+
return false if !@division.nil? && @division > 7
|
82
|
+
return false if !@division.nil? && @division < 1
|
83
|
+
return false if !@name.nil? && @name.to_s.length > 50
|
84
|
+
return true
|
85
|
+
end
|
86
|
+
|
87
|
+
# Custom attribute writer method with validation
|
88
|
+
# @param [Object] division Value to be assigned
|
89
|
+
def division=(division)
|
90
|
+
|
91
|
+
if !division.nil? && division > 7
|
92
|
+
fail ArgumentError, "invalid value for 'division', must be smaller than or equal to 7."
|
93
|
+
end
|
94
|
+
|
95
|
+
if !division.nil? && division < 1
|
96
|
+
fail ArgumentError, "invalid value for 'division', must be greater than or equal to 1."
|
97
|
+
end
|
98
|
+
|
99
|
+
@division = division
|
100
|
+
end
|
101
|
+
|
102
|
+
# Custom attribute writer method with validation
|
103
|
+
# @param [Object] name Value to be assigned
|
104
|
+
def name=(name)
|
105
|
+
|
106
|
+
if !name.nil? && name.to_s.length > 50
|
107
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
108
|
+
end
|
109
|
+
|
110
|
+
@name = name
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
division == o.division &&
|
119
|
+
name == o.name
|
120
|
+
end
|
121
|
+
|
122
|
+
# @see the `==` method
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def eql?(o)
|
125
|
+
self == o
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Fixnum] Hash code
|
130
|
+
def hash
|
131
|
+
[division, name].hash
|
132
|
+
end
|
133
|
+
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def build_from_hash(attributes)
|
138
|
+
return nil unless attributes.is_a?(Hash)
|
139
|
+
self.class.swagger_types.each_pair do |key, type|
|
140
|
+
if type =~ /\AArray<(.*)>/i
|
141
|
+
# check to ensure the input is an array given that the the attribute
|
142
|
+
# is documented as an array but the input is not
|
143
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
144
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
145
|
+
end
|
146
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
147
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
148
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
149
|
+
end
|
150
|
+
|
151
|
+
self
|
152
|
+
end
|
153
|
+
|
154
|
+
# Deserializes the data based on type
|
155
|
+
# @param string type Data type
|
156
|
+
# @param string value Value to be deserialized
|
157
|
+
# @return [Object] Deserialized data
|
158
|
+
def _deserialize(type, value)
|
159
|
+
case type.to_sym
|
160
|
+
when :DateTime
|
161
|
+
DateTime.parse(value)
|
162
|
+
when :Date
|
163
|
+
Date.parse(value)
|
164
|
+
when :String
|
165
|
+
value.to_s
|
166
|
+
when :Integer
|
167
|
+
value.to_i
|
168
|
+
when :Float
|
169
|
+
value.to_f
|
170
|
+
when :BOOLEAN
|
171
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
172
|
+
true
|
173
|
+
else
|
174
|
+
false
|
175
|
+
end
|
176
|
+
when :Object
|
177
|
+
# generic object (usually a Hash), return directly
|
178
|
+
value
|
179
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
180
|
+
inner_type = Regexp.last_match[:inner_type]
|
181
|
+
value.map { |v| _deserialize(inner_type, v) }
|
182
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
183
|
+
k_type = Regexp.last_match[:k_type]
|
184
|
+
v_type = Regexp.last_match[:v_type]
|
185
|
+
{}.tap do |hash|
|
186
|
+
value.each do |k, v|
|
187
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
else # model
|
191
|
+
temp_model = ESIClient.const_get(type).new
|
192
|
+
temp_model.build_from_hash(value)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Returns the string representation of the object
|
197
|
+
# @return [String] String presentation of the object
|
198
|
+
def to_s
|
199
|
+
to_hash.to_s
|
200
|
+
end
|
201
|
+
|
202
|
+
# to_body is an alias to to_hash (backward compatibility)
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
204
|
+
def to_body
|
205
|
+
to_hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the object in the form of hash
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
210
|
+
def to_hash
|
211
|
+
hash = {}
|
212
|
+
self.class.attribute_map.each_pair do |attr, param|
|
213
|
+
value = self.send(attr)
|
214
|
+
next if value.nil?
|
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
|
237
|
+
|
238
|
+
end
|
239
|
+
|
240
|
+
end
|
@@ -0,0 +1,203 @@
|
|
1
|
+
=begin
|
2
|
+
#EVE Swagger Interface
|
3
|
+
|
4
|
+
#An OpenAPI for EVE Online
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.6.2
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module ESIClient
|
16
|
+
# 200 ok object
|
17
|
+
class GetCorporationsCorporationIdDivisionsOk
|
18
|
+
# hangar array
|
19
|
+
attr_accessor :hangar
|
20
|
+
|
21
|
+
# wallet array
|
22
|
+
attr_accessor :wallet
|
23
|
+
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'hangar' => :'hangar',
|
29
|
+
:'wallet' => :'wallet'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.swagger_types
|
35
|
+
{
|
36
|
+
:'hangar' => :'Array<GetCorporationsCorporationIdDivisionsHangar>',
|
37
|
+
:'wallet' => :'Array<GetCorporationsCorporationIdDivisionsWallet>'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
|
+
|
49
|
+
if attributes.has_key?(:'hangar')
|
50
|
+
if (value = attributes[:'hangar']).is_a?(Array)
|
51
|
+
self.hangar = value
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
if attributes.has_key?(:'wallet')
|
56
|
+
if (value = attributes[:'wallet']).is_a?(Array)
|
57
|
+
self.wallet = value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
64
|
+
# @return Array for valid properies with the reasons
|
65
|
+
def list_invalid_properties
|
66
|
+
invalid_properties = Array.new
|
67
|
+
return invalid_properties
|
68
|
+
end
|
69
|
+
|
70
|
+
# Check to see if the all the properties in the model are valid
|
71
|
+
# @return true if the model is valid
|
72
|
+
def valid?
|
73
|
+
return true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Checks equality by comparing each attribute.
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def ==(o)
|
79
|
+
return true if self.equal?(o)
|
80
|
+
self.class == o.class &&
|
81
|
+
hangar == o.hangar &&
|
82
|
+
wallet == o.wallet
|
83
|
+
end
|
84
|
+
|
85
|
+
# @see the `==` method
|
86
|
+
# @param [Object] Object to be compared
|
87
|
+
def eql?(o)
|
88
|
+
self == o
|
89
|
+
end
|
90
|
+
|
91
|
+
# Calculates hash code according to all attributes.
|
92
|
+
# @return [Fixnum] Hash code
|
93
|
+
def hash
|
94
|
+
[hangar, wallet].hash
|
95
|
+
end
|
96
|
+
|
97
|
+
# Builds the object from hash
|
98
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
+
# @return [Object] Returns the model itself
|
100
|
+
def build_from_hash(attributes)
|
101
|
+
return nil unless attributes.is_a?(Hash)
|
102
|
+
self.class.swagger_types.each_pair do |key, type|
|
103
|
+
if type =~ /\AArray<(.*)>/i
|
104
|
+
# check to ensure the input is an array given that the the attribute
|
105
|
+
# is documented as an array but the input is not
|
106
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
107
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
108
|
+
end
|
109
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
110
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
111
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
112
|
+
end
|
113
|
+
|
114
|
+
self
|
115
|
+
end
|
116
|
+
|
117
|
+
# Deserializes the data based on type
|
118
|
+
# @param string type Data type
|
119
|
+
# @param string value Value to be deserialized
|
120
|
+
# @return [Object] Deserialized data
|
121
|
+
def _deserialize(type, value)
|
122
|
+
case type.to_sym
|
123
|
+
when :DateTime
|
124
|
+
DateTime.parse(value)
|
125
|
+
when :Date
|
126
|
+
Date.parse(value)
|
127
|
+
when :String
|
128
|
+
value.to_s
|
129
|
+
when :Integer
|
130
|
+
value.to_i
|
131
|
+
when :Float
|
132
|
+
value.to_f
|
133
|
+
when :BOOLEAN
|
134
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
135
|
+
true
|
136
|
+
else
|
137
|
+
false
|
138
|
+
end
|
139
|
+
when :Object
|
140
|
+
# generic object (usually a Hash), return directly
|
141
|
+
value
|
142
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
143
|
+
inner_type = Regexp.last_match[:inner_type]
|
144
|
+
value.map { |v| _deserialize(inner_type, v) }
|
145
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
146
|
+
k_type = Regexp.last_match[:k_type]
|
147
|
+
v_type = Regexp.last_match[:v_type]
|
148
|
+
{}.tap do |hash|
|
149
|
+
value.each do |k, v|
|
150
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
else # model
|
154
|
+
temp_model = ESIClient.const_get(type).new
|
155
|
+
temp_model.build_from_hash(value)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
# Returns the string representation of the object
|
160
|
+
# @return [String] String presentation of the object
|
161
|
+
def to_s
|
162
|
+
to_hash.to_s
|
163
|
+
end
|
164
|
+
|
165
|
+
# to_body is an alias to to_hash (backward compatibility)
|
166
|
+
# @return [Hash] Returns the object in the form of hash
|
167
|
+
def to_body
|
168
|
+
to_hash
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the object in the form of hash
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
173
|
+
def to_hash
|
174
|
+
hash = {}
|
175
|
+
self.class.attribute_map.each_pair do |attr, param|
|
176
|
+
value = self.send(attr)
|
177
|
+
next if value.nil?
|
178
|
+
hash[param] = _to_hash(value)
|
179
|
+
end
|
180
|
+
hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Outputs non-array value in the form of hash
|
184
|
+
# For object, use to_hash. Otherwise, just return the value
|
185
|
+
# @param [Object] value Any valid value
|
186
|
+
# @return [Hash] Returns the value in the form of hash
|
187
|
+
def _to_hash(value)
|
188
|
+
if value.is_a?(Array)
|
189
|
+
value.compact.map{ |v| _to_hash(v) }
|
190
|
+
elsif value.is_a?(Hash)
|
191
|
+
{}.tap do |hash|
|
192
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
193
|
+
end
|
194
|
+
elsif value.respond_to? :to_hash
|
195
|
+
value.to_hash
|
196
|
+
else
|
197
|
+
value
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
end
|
202
|
+
|
203
|
+
end
|
@@ -0,0 +1,240 @@
|
|
1
|
+
=begin
|
2
|
+
#EVE Swagger Interface
|
3
|
+
|
4
|
+
#An OpenAPI for EVE Online
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.6.2
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module ESIClient
|
16
|
+
# wallet object
|
17
|
+
class GetCorporationsCorporationIdDivisionsWallet
|
18
|
+
# division integer
|
19
|
+
attr_accessor :division
|
20
|
+
|
21
|
+
# name string
|
22
|
+
attr_accessor :name
|
23
|
+
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'division' => :'division',
|
29
|
+
:'name' => :'name'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.swagger_types
|
35
|
+
{
|
36
|
+
:'division' => :'Integer',
|
37
|
+
:'name' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
|
+
|
49
|
+
if attributes.has_key?(:'division')
|
50
|
+
self.division = attributes[:'division']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'name')
|
54
|
+
self.name = attributes[:'name']
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
+
# @return Array for valid properies with the reasons
|
61
|
+
def list_invalid_properties
|
62
|
+
invalid_properties = Array.new
|
63
|
+
if !@division.nil? && @division > 7
|
64
|
+
invalid_properties.push("invalid value for 'division', must be smaller than or equal to 7.")
|
65
|
+
end
|
66
|
+
|
67
|
+
if !@division.nil? && @division < 1
|
68
|
+
invalid_properties.push("invalid value for 'division', must be greater than or equal to 1.")
|
69
|
+
end
|
70
|
+
|
71
|
+
if !@name.nil? && @name.to_s.length > 50
|
72
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
73
|
+
end
|
74
|
+
|
75
|
+
return invalid_properties
|
76
|
+
end
|
77
|
+
|
78
|
+
# Check to see if the all the properties in the model are valid
|
79
|
+
# @return true if the model is valid
|
80
|
+
def valid?
|
81
|
+
return false if !@division.nil? && @division > 7
|
82
|
+
return false if !@division.nil? && @division < 1
|
83
|
+
return false if !@name.nil? && @name.to_s.length > 50
|
84
|
+
return true
|
85
|
+
end
|
86
|
+
|
87
|
+
# Custom attribute writer method with validation
|
88
|
+
# @param [Object] division Value to be assigned
|
89
|
+
def division=(division)
|
90
|
+
|
91
|
+
if !division.nil? && division > 7
|
92
|
+
fail ArgumentError, "invalid value for 'division', must be smaller than or equal to 7."
|
93
|
+
end
|
94
|
+
|
95
|
+
if !division.nil? && division < 1
|
96
|
+
fail ArgumentError, "invalid value for 'division', must be greater than or equal to 1."
|
97
|
+
end
|
98
|
+
|
99
|
+
@division = division
|
100
|
+
end
|
101
|
+
|
102
|
+
# Custom attribute writer method with validation
|
103
|
+
# @param [Object] name Value to be assigned
|
104
|
+
def name=(name)
|
105
|
+
|
106
|
+
if !name.nil? && name.to_s.length > 50
|
107
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
108
|
+
end
|
109
|
+
|
110
|
+
@name = name
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
division == o.division &&
|
119
|
+
name == o.name
|
120
|
+
end
|
121
|
+
|
122
|
+
# @see the `==` method
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def eql?(o)
|
125
|
+
self == o
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Fixnum] Hash code
|
130
|
+
def hash
|
131
|
+
[division, name].hash
|
132
|
+
end
|
133
|
+
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def build_from_hash(attributes)
|
138
|
+
return nil unless attributes.is_a?(Hash)
|
139
|
+
self.class.swagger_types.each_pair do |key, type|
|
140
|
+
if type =~ /\AArray<(.*)>/i
|
141
|
+
# check to ensure the input is an array given that the the attribute
|
142
|
+
# is documented as an array but the input is not
|
143
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
144
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
145
|
+
end
|
146
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
147
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
148
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
149
|
+
end
|
150
|
+
|
151
|
+
self
|
152
|
+
end
|
153
|
+
|
154
|
+
# Deserializes the data based on type
|
155
|
+
# @param string type Data type
|
156
|
+
# @param string value Value to be deserialized
|
157
|
+
# @return [Object] Deserialized data
|
158
|
+
def _deserialize(type, value)
|
159
|
+
case type.to_sym
|
160
|
+
when :DateTime
|
161
|
+
DateTime.parse(value)
|
162
|
+
when :Date
|
163
|
+
Date.parse(value)
|
164
|
+
when :String
|
165
|
+
value.to_s
|
166
|
+
when :Integer
|
167
|
+
value.to_i
|
168
|
+
when :Float
|
169
|
+
value.to_f
|
170
|
+
when :BOOLEAN
|
171
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
172
|
+
true
|
173
|
+
else
|
174
|
+
false
|
175
|
+
end
|
176
|
+
when :Object
|
177
|
+
# generic object (usually a Hash), return directly
|
178
|
+
value
|
179
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
180
|
+
inner_type = Regexp.last_match[:inner_type]
|
181
|
+
value.map { |v| _deserialize(inner_type, v) }
|
182
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
183
|
+
k_type = Regexp.last_match[:k_type]
|
184
|
+
v_type = Regexp.last_match[:v_type]
|
185
|
+
{}.tap do |hash|
|
186
|
+
value.each do |k, v|
|
187
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
else # model
|
191
|
+
temp_model = ESIClient.const_get(type).new
|
192
|
+
temp_model.build_from_hash(value)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Returns the string representation of the object
|
197
|
+
# @return [String] String presentation of the object
|
198
|
+
def to_s
|
199
|
+
to_hash.to_s
|
200
|
+
end
|
201
|
+
|
202
|
+
# to_body is an alias to to_hash (backward compatibility)
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
204
|
+
def to_body
|
205
|
+
to_hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the object in the form of hash
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
210
|
+
def to_hash
|
211
|
+
hash = {}
|
212
|
+
self.class.attribute_map.each_pair do |attr, param|
|
213
|
+
value = self.send(attr)
|
214
|
+
next if value.nil?
|
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
|
237
|
+
|
238
|
+
end
|
239
|
+
|
240
|
+
end
|