greeve 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +139 -0
- data/doc/Greeve.html +5 -5
- data/doc/Greeve/API.html +15 -3
- data/doc/Greeve/API/CallList.html +466 -0
- data/doc/Greeve/Account.html +130 -0
- data/doc/Greeve/Account/APIKeyInfo.html +599 -0
- data/doc/Greeve/Account/AccountStatus.html +579 -0
- data/doc/Greeve/Account/Characters.html +389 -0
- data/doc/Greeve/Application.html +428 -0
- data/doc/Greeve/Attributable.html +123 -0
- data/doc/Greeve/BaseItem.html +240 -210
- data/doc/Greeve/Character.html +15 -3
- data/doc/Greeve/Character/AccountBalance.html +420 -0
- data/doc/Greeve/Character/AssetList.html +480 -0
- data/doc/Greeve/Character/Blueprints.html +535 -0
- data/doc/Greeve/Character/CalendarEventAttendees.html +461 -0
- data/doc/Greeve/Character/CharacterSheet.html +3407 -0
- data/doc/Greeve/Character/Clones.html +1700 -0
- data/doc/Greeve/Character/ContactList.html +1047 -0
- data/doc/Greeve/Character/ContactNotifications.html +446 -0
- data/doc/Greeve/Character/ContractBids.html +446 -0
- data/doc/Greeve/Character/ContractItems.html +483 -0
- data/doc/Greeve/Character/Contracts.html +720 -0
- data/doc/Greeve/Character/FacWarStats.html +1075 -0
- data/doc/Greeve/Character/IndustryJobs.html +732 -0
- data/doc/Greeve/Character/IndustryJobsHistory.html +732 -0
- data/doc/Greeve/Character/Locations.html +503 -0
- data/doc/Greeve/Character/MailBodies.html +435 -0
- data/doc/Greeve/Character/MailMessages.html +485 -0
- data/doc/Greeve/Character/MailingLists.html +407 -0
- data/doc/Greeve/Character/MarketOrders.html +626 -0
- data/doc/Greeve/Character/Medals.html +665 -0
- data/doc/Greeve/Character/Notifications.html +459 -0
- data/doc/Greeve/Character/PlanetaryColonies.html +524 -0
- data/doc/Greeve/Character/PlanetaryLinks.html +444 -0
- data/doc/Greeve/Character/PlanetaryPins.html +587 -0
- data/doc/Greeve/Character/PlanetaryRoutes.html +548 -0
- data/doc/Greeve/Character/Research.html +446 -0
- data/doc/Greeve/Character/SkillInTraining.html +865 -0
- data/doc/Greeve/Character/SkillQueue.html +472 -0
- data/doc/Greeve/Character/Skills.html +516 -0
- data/doc/Greeve/Character/Standings.html +650 -0
- data/doc/Greeve/Character/UpcomingCalendarEvents.html +511 -0
- data/doc/Greeve/Character/WalletJournal.html +658 -0
- data/doc/Greeve/Character/WalletTransactions.html +631 -0
- data/doc/Greeve/Config.html +315 -0
- data/doc/Greeve/Corporation.html +15 -3
- data/doc/Greeve/Corporation/AccountBalance.html +324 -0
- data/doc/Greeve/Corporation/Contracts.html +700 -0
- data/doc/Greeve/Corporation/CorporationSheet.html +1285 -0
- data/doc/Greeve/Corporation/IndustryJobs.html +636 -0
- data/doc/Greeve/Corporation/IndustryJobsHistory.html +636 -0
- data/doc/Greeve/Corporation/Locations.html +452 -0
- data/doc/Greeve/Corporation/MarketOrders.html +609 -0
- data/doc/Greeve/Corporation/MemberTracking.html +596 -0
- data/doc/Greeve/Corporation/Standings.html +554 -0
- data/doc/Greeve/Corporation/StarbaseDetail.html +619 -0
- data/doc/Greeve/Corporation/StarbaseList.html +389 -0
- data/doc/Greeve/Corporation/WalletJournal.html +631 -0
- data/doc/Greeve/Corporation/WalletTransactions.html +657 -0
- data/doc/Greeve/Eve.html +3 -3
- data/doc/Greeve/Eve/AllianceList.html +476 -0
- data/doc/Greeve/Eve/CharacterAffiliation.html +491 -0
- data/doc/Greeve/Eve/CharacterID.html +413 -0
- data/doc/Greeve/Eve/CharacterInfo.html +1705 -52
- data/doc/Greeve/Eve/CharacterName.html +414 -0
- data/doc/Greeve/Eve/ConquerableStationList.html +402 -0
- data/doc/Greeve/Eve/ErrorList.html +311 -0
- data/doc/Greeve/Eve/RefTypes.html +312 -0
- data/doc/Greeve/Eve/TypeName.html +413 -0
- data/doc/Greeve/Helpers.html +130 -0
- data/doc/Greeve/Helpers/AddAttribute.html +124 -0
- data/doc/Greeve/Helpers/AttributeToHash.html +245 -0
- data/doc/Greeve/Helpers/DefineAttributeMethod.html +124 -0
- data/doc/Greeve/Helpers/DefineDSLMethods.html +124 -0
- data/doc/Greeve/Map.html +15 -3
- data/doc/Greeve/Map/FacWarSystems.html +404 -0
- data/doc/Greeve/Map/Jumps.html +313 -0
- data/doc/Greeve/Map/Kills.html +339 -0
- data/doc/Greeve/Map/Sovereignty.html +351 -0
- data/doc/Greeve/Namespace.html +586 -0
- data/doc/Greeve/ResponseError.html +521 -0
- data/doc/Greeve/Row.html +40 -161
- data/doc/Greeve/Rowset.html +28 -22
- data/doc/Greeve/Server.html +15 -3
- data/doc/Greeve/Server/ServerStatus.html +349 -0
- data/doc/_index.html +600 -4
- data/doc/class_list.html +1 -1
- data/doc/file.CONTRIBUTING.html +1 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +140 -1
- data/doc/index.html +140 -1
- data/doc/method_list.html +2024 -32
- data/doc/top-level-namespace.html +1 -1
- data/lib/greeve.rb +75 -0
- data/lib/greeve/account/account_status.rb +22 -0
- data/lib/greeve/account/api_key_info.rb +27 -0
- data/lib/greeve/account/characters.rb +23 -0
- data/lib/greeve/api/call_list.rb +27 -0
- data/lib/greeve/base_item.rb +41 -57
- data/lib/greeve/character/account_balance.rb +24 -0
- data/lib/greeve/character/asset_list.rb +32 -0
- data/lib/greeve/character/blueprints.rb +35 -0
- data/lib/greeve/character/calendar_event_attendees.rb +33 -0
- data/lib/greeve/character/character_sheet.rb +110 -0
- data/lib/greeve/character/clones.rb +60 -0
- data/lib/greeve/character/contact_list.rb +58 -0
- data/lib/greeve/character/contact_notifications.rb +26 -0
- data/lib/greeve/character/contract_bids.rb +26 -0
- data/lib/greeve/character/contract_items.rb +32 -0
- data/lib/greeve/character/contracts.rb +49 -0
- data/lib/greeve/character/fac_war_stats.rb +30 -0
- data/lib/greeve/character/industry_jobs.rb +48 -0
- data/lib/greeve/character/industry_jobs_history.rb +48 -0
- data/lib/greeve/character/locations.rb +36 -0
- data/lib/greeve/character/mail_bodies.rb +33 -0
- data/lib/greeve/character/mail_messages.rb +29 -0
- data/lib/greeve/character/mailing_lists.rb +23 -0
- data/lib/greeve/character/market_orders.rb +42 -0
- data/lib/greeve/character/medals.rb +40 -0
- data/lib/greeve/character/notifications.rb +27 -0
- data/lib/greeve/character/planetary_colonies.rb +32 -0
- data/lib/greeve/character/planetary_links.rb +30 -0
- data/lib/greeve/character/planetary_pins.rb +41 -0
- data/lib/greeve/character/planetary_routes.rb +38 -0
- data/lib/greeve/character/research.rb +26 -0
- data/lib/greeve/character/skill_in_training.rb +27 -0
- data/lib/greeve/character/skill_queue.rb +28 -0
- data/lib/greeve/character/skills.rb +28 -0
- data/lib/greeve/character/standings.rb +36 -0
- data/lib/greeve/character/upcoming_calendar_events.rb +31 -0
- data/lib/greeve/character/wallet_journal.rb +49 -0
- data/lib/greeve/character/wallet_transactions.rb +47 -0
- data/lib/greeve/config.rb +16 -0
- data/lib/greeve/corporation/account_balance.rb +18 -0
- data/lib/greeve/corporation/contracts.rb +46 -0
- data/lib/greeve/corporation/corporation_sheet.rb +43 -0
- data/lib/greeve/corporation/industry_jobs.rb +42 -0
- data/lib/greeve/corporation/industry_jobs_history.rb +42 -0
- data/lib/greeve/corporation/locations.rb +31 -0
- data/lib/greeve/corporation/market_orders.rb +39 -0
- data/lib/greeve/corporation/member_tracking.rb +38 -0
- data/lib/greeve/corporation/standings.rb +30 -0
- data/lib/greeve/corporation/starbase_detail.rb +58 -0
- data/lib/greeve/corporation/starbase_list.rb +23 -0
- data/lib/greeve/corporation/wallet_journal.rb +48 -0
- data/lib/greeve/corporation/wallet_transactions.rb +50 -0
- data/lib/greeve/eve/alliance_list.rb +29 -0
- data/lib/greeve/eve/character_affiliation.rb +34 -0
- data/lib/greeve/eve/character_id.rb +28 -0
- data/lib/greeve/eve/character_info.rb +4 -1
- data/lib/greeve/eve/character_name.rb +29 -0
- data/lib/greeve/eve/conquerable_station_list.rb +24 -0
- data/lib/greeve/eve/error_list.rb +17 -0
- data/lib/greeve/eve/ref_types.rb +18 -0
- data/lib/greeve/eve/type_name.rb +28 -0
- data/lib/greeve/helpers/add_attribute.rb +25 -0
- data/lib/greeve/helpers/attribute_to_hash.rb +24 -0
- data/lib/greeve/helpers/define_dsl_methods.rb +70 -0
- data/lib/greeve/map/fac_war_systems.rb +26 -0
- data/lib/greeve/map/jumps.rb +19 -0
- data/lib/greeve/map/kills.rb +21 -0
- data/lib/greeve/map/sovereignty.rb +21 -0
- data/lib/greeve/namespace.rb +74 -0
- data/lib/greeve/response_error.rb +21 -0
- data/lib/greeve/row.rb +11 -33
- data/lib/greeve/rowset.rb +6 -15
- data/lib/greeve/server/server_status.rb +15 -0
- data/lib/greeve/version.rb +1 -1
- metadata +165 -2
@@ -0,0 +1,123 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: Greeve::Attributable
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.5
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "Greeve::Attributable";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (A)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../Greeve.html" title="Greeve (module)">Greeve</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Attributable</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<iframe id="search_frame" src="../class_list.html"></iframe>
|
63
|
+
|
64
|
+
<div id="content"><h1>Module: Greeve::Attributable
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
</h1>
|
69
|
+
<div class="box_info">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Included in:</dt>
|
81
|
+
<dd><span class='object_link'><a href="BaseItem.html" title="Greeve::BaseItem (class)">BaseItem</a></span>, <span class='object_link'><a href="Row.html" title="Greeve::Row (class)">Row</a></span>, <span class='object_link'><a href="Rowset.html" title="Greeve::Rowset (class)">Rowset</a></span></dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
<dl>
|
87
|
+
<dt>Defined in:</dt>
|
88
|
+
<dd>lib/greeve/attributable.rb</dd>
|
89
|
+
</dl>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<h2>Overview</h2><div class="docstring">
|
94
|
+
<div class="discussion">
|
95
|
+
|
96
|
+
<p>Methods shared between objects that implement the attribute DSL.</p>
|
97
|
+
|
98
|
+
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
<div class="tags">
|
102
|
+
|
103
|
+
|
104
|
+
</div>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
<div id="footer">
|
116
|
+
Generated on Tue Aug 30 22:50:35 2016 by
|
117
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
118
|
+
0.9.5 (ruby-2.1.7).
|
119
|
+
</div>
|
120
|
+
|
121
|
+
</div>
|
122
|
+
</body>
|
123
|
+
</html>
|
data/doc/Greeve/BaseItem.html
CHANGED
@@ -87,7 +87,17 @@
|
|
87
87
|
|
88
88
|
|
89
89
|
|
90
|
+
<dl>
|
91
|
+
<dt>Extended by:</dt>
|
92
|
+
<dd><span class='object_link'><a href="Helpers/AddAttribute.html" title="Greeve::Helpers::AddAttribute (module)">Helpers::AddAttribute</a></span>, <span class='object_link'><a href="Helpers/DefineDSLMethods.html" title="Greeve::Helpers::DefineDSLMethods (module)">Helpers::DefineDSLMethods</a></span></dd>
|
93
|
+
</dl>
|
94
|
+
|
95
|
+
|
90
96
|
|
97
|
+
<dl>
|
98
|
+
<dt>Includes:</dt>
|
99
|
+
<dd><span class='object_link'><a href="Helpers/AttributeToHash.html" title="Greeve::Helpers::AttributeToHash (module)">Helpers::AttributeToHash</a></span></dd>
|
100
|
+
</dl>
|
91
101
|
|
92
102
|
|
93
103
|
|
@@ -116,7 +126,7 @@ the specific EVE API resources.</p>
|
|
116
126
|
|
117
127
|
</div><div id="subclasses">
|
118
128
|
<h2>Direct Known Subclasses</h2>
|
119
|
-
<p class="children"><span class='object_link'><a href="Eve/CharacterInfo.html" title="Greeve::Eve::CharacterInfo (class)">Eve::CharacterInfo</a></span></p>
|
129
|
+
<p class="children"><span class='object_link'><a href="API/CallList.html" title="Greeve::API::CallList (class)">API::CallList</a></span>, <span class='object_link'><a href="Account/APIKeyInfo.html" title="Greeve::Account::APIKeyInfo (class)">Account::APIKeyInfo</a></span>, <span class='object_link'><a href="Account/AccountStatus.html" title="Greeve::Account::AccountStatus (class)">Account::AccountStatus</a></span>, <span class='object_link'><a href="Account/Characters.html" title="Greeve::Account::Characters (class)">Account::Characters</a></span>, <span class='object_link'><a href="Character/AccountBalance.html" title="Greeve::Character::AccountBalance (class)">Character::AccountBalance</a></span>, <span class='object_link'><a href="Character/AssetList.html" title="Greeve::Character::AssetList (class)">Character::AssetList</a></span>, <span class='object_link'><a href="Character/Blueprints.html" title="Greeve::Character::Blueprints (class)">Character::Blueprints</a></span>, <span class='object_link'><a href="Character/CalendarEventAttendees.html" title="Greeve::Character::CalendarEventAttendees (class)">Character::CalendarEventAttendees</a></span>, <span class='object_link'><a href="Character/CharacterSheet.html" title="Greeve::Character::CharacterSheet (class)">Character::CharacterSheet</a></span>, <span class='object_link'><a href="Character/Clones.html" title="Greeve::Character::Clones (class)">Character::Clones</a></span>, <span class='object_link'><a href="Character/ContactList.html" title="Greeve::Character::ContactList (class)">Character::ContactList</a></span>, <span class='object_link'><a href="Character/ContactNotifications.html" title="Greeve::Character::ContactNotifications (class)">Character::ContactNotifications</a></span>, <span class='object_link'><a href="Character/ContractBids.html" title="Greeve::Character::ContractBids (class)">Character::ContractBids</a></span>, <span class='object_link'><a href="Character/ContractItems.html" title="Greeve::Character::ContractItems (class)">Character::ContractItems</a></span>, <span class='object_link'><a href="Character/Contracts.html" title="Greeve::Character::Contracts (class)">Character::Contracts</a></span>, <span class='object_link'><a href="Character/FacWarStats.html" title="Greeve::Character::FacWarStats (class)">Character::FacWarStats</a></span>, <span class='object_link'><a href="Character/IndustryJobs.html" title="Greeve::Character::IndustryJobs (class)">Character::IndustryJobs</a></span>, <span class='object_link'><a href="Character/IndustryJobsHistory.html" title="Greeve::Character::IndustryJobsHistory (class)">Character::IndustryJobsHistory</a></span>, <span class='object_link'><a href="Character/Locations.html" title="Greeve::Character::Locations (class)">Character::Locations</a></span>, <span class='object_link'><a href="Character/MailBodies.html" title="Greeve::Character::MailBodies (class)">Character::MailBodies</a></span>, <span class='object_link'><a href="Character/MailMessages.html" title="Greeve::Character::MailMessages (class)">Character::MailMessages</a></span>, <span class='object_link'><a href="Character/MailingLists.html" title="Greeve::Character::MailingLists (class)">Character::MailingLists</a></span>, <span class='object_link'><a href="Character/MarketOrders.html" title="Greeve::Character::MarketOrders (class)">Character::MarketOrders</a></span>, <span class='object_link'><a href="Character/Medals.html" title="Greeve::Character::Medals (class)">Character::Medals</a></span>, <span class='object_link'><a href="Character/Notifications.html" title="Greeve::Character::Notifications (class)">Character::Notifications</a></span>, <span class='object_link'><a href="Character/PlanetaryColonies.html" title="Greeve::Character::PlanetaryColonies (class)">Character::PlanetaryColonies</a></span>, <span class='object_link'><a href="Character/PlanetaryLinks.html" title="Greeve::Character::PlanetaryLinks (class)">Character::PlanetaryLinks</a></span>, <span class='object_link'><a href="Character/PlanetaryPins.html" title="Greeve::Character::PlanetaryPins (class)">Character::PlanetaryPins</a></span>, <span class='object_link'><a href="Character/PlanetaryRoutes.html" title="Greeve::Character::PlanetaryRoutes (class)">Character::PlanetaryRoutes</a></span>, <span class='object_link'><a href="Character/Research.html" title="Greeve::Character::Research (class)">Character::Research</a></span>, <span class='object_link'><a href="Character/SkillInTraining.html" title="Greeve::Character::SkillInTraining (class)">Character::SkillInTraining</a></span>, <span class='object_link'><a href="Character/SkillQueue.html" title="Greeve::Character::SkillQueue (class)">Character::SkillQueue</a></span>, <span class='object_link'><a href="Character/Skills.html" title="Greeve::Character::Skills (class)">Character::Skills</a></span>, <span class='object_link'><a href="Character/Standings.html" title="Greeve::Character::Standings (class)">Character::Standings</a></span>, <span class='object_link'><a href="Character/UpcomingCalendarEvents.html" title="Greeve::Character::UpcomingCalendarEvents (class)">Character::UpcomingCalendarEvents</a></span>, <span class='object_link'><a href="Character/WalletJournal.html" title="Greeve::Character::WalletJournal (class)">Character::WalletJournal</a></span>, <span class='object_link'><a href="Character/WalletTransactions.html" title="Greeve::Character::WalletTransactions (class)">Character::WalletTransactions</a></span>, <span class='object_link'><a href="Corporation/AccountBalance.html" title="Greeve::Corporation::AccountBalance (class)">Corporation::AccountBalance</a></span>, <span class='object_link'><a href="Corporation/Contracts.html" title="Greeve::Corporation::Contracts (class)">Corporation::Contracts</a></span>, <span class='object_link'><a href="Corporation/CorporationSheet.html" title="Greeve::Corporation::CorporationSheet (class)">Corporation::CorporationSheet</a></span>, <span class='object_link'><a href="Corporation/IndustryJobs.html" title="Greeve::Corporation::IndustryJobs (class)">Corporation::IndustryJobs</a></span>, <span class='object_link'><a href="Corporation/IndustryJobsHistory.html" title="Greeve::Corporation::IndustryJobsHistory (class)">Corporation::IndustryJobsHistory</a></span>, <span class='object_link'><a href="Corporation/Locations.html" title="Greeve::Corporation::Locations (class)">Corporation::Locations</a></span>, <span class='object_link'><a href="Corporation/MarketOrders.html" title="Greeve::Corporation::MarketOrders (class)">Corporation::MarketOrders</a></span>, <span class='object_link'><a href="Corporation/MemberTracking.html" title="Greeve::Corporation::MemberTracking (class)">Corporation::MemberTracking</a></span>, <span class='object_link'><a href="Corporation/Standings.html" title="Greeve::Corporation::Standings (class)">Corporation::Standings</a></span>, <span class='object_link'><a href="Corporation/StarbaseDetail.html" title="Greeve::Corporation::StarbaseDetail (class)">Corporation::StarbaseDetail</a></span>, <span class='object_link'><a href="Corporation/StarbaseList.html" title="Greeve::Corporation::StarbaseList (class)">Corporation::StarbaseList</a></span>, <span class='object_link'><a href="Corporation/WalletJournal.html" title="Greeve::Corporation::WalletJournal (class)">Corporation::WalletJournal</a></span>, <span class='object_link'><a href="Corporation/WalletTransactions.html" title="Greeve::Corporation::WalletTransactions (class)">Corporation::WalletTransactions</a></span>, <span class='object_link'><a href="Eve/AllianceList.html" title="Greeve::Eve::AllianceList (class)">Eve::AllianceList</a></span>, <span class='object_link'><a href="Eve/CharacterAffiliation.html" title="Greeve::Eve::CharacterAffiliation (class)">Eve::CharacterAffiliation</a></span>, <span class='object_link'><a href="Eve/CharacterID.html" title="Greeve::Eve::CharacterID (class)">Eve::CharacterID</a></span>, <span class='object_link'><a href="Eve/CharacterInfo.html" title="Greeve::Eve::CharacterInfo (class)">Eve::CharacterInfo</a></span>, <span class='object_link'><a href="Eve/CharacterName.html" title="Greeve::Eve::CharacterName (class)">Eve::CharacterName</a></span>, <span class='object_link'><a href="Eve/ConquerableStationList.html" title="Greeve::Eve::ConquerableStationList (class)">Eve::ConquerableStationList</a></span>, <span class='object_link'><a href="Eve/ErrorList.html" title="Greeve::Eve::ErrorList (class)">Eve::ErrorList</a></span>, <span class='object_link'><a href="Eve/RefTypes.html" title="Greeve::Eve::RefTypes (class)">Eve::RefTypes</a></span>, <span class='object_link'><a href="Eve/TypeName.html" title="Greeve::Eve::TypeName (class)">Eve::TypeName</a></span>, <span class='object_link'><a href="Map/FacWarSystems.html" title="Greeve::Map::FacWarSystems (class)">Map::FacWarSystems</a></span>, <span class='object_link'><a href="Map/Jumps.html" title="Greeve::Map::Jumps (class)">Map::Jumps</a></span>, <span class='object_link'><a href="Map/Kills.html" title="Greeve::Map::Kills (class)">Map::Kills</a></span>, <span class='object_link'><a href="Map/Sovereignty.html" title="Greeve::Map::Sovereignty (class)">Map::Sovereignty</a></span>, <span class='object_link'><a href="Server/ServerStatus.html" title="Greeve::Server::ServerStatus (class)">Server::ServerStatus</a></span></p>
|
120
130
|
</div>
|
121
131
|
|
122
132
|
|
@@ -178,6 +188,30 @@ the specific EVE API resources.</p>
|
|
178
188
|
<p>A DSL method to specify the API endpoint.</p>
|
179
189
|
</div></span>
|
180
190
|
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="public ">
|
195
|
+
<span class="summary_signature">
|
196
|
+
|
197
|
+
<a href="#namespace-class_method" title="namespace (class method)">.<strong>namespace</strong>(name, opts = {}, &block) ⇒ Object </a>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</span>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<span class="summary_desc"><div class='inline'>
|
212
|
+
<p>A DSL method to nest a set of attributes within a namespace.</p>
|
213
|
+
</div></span>
|
214
|
+
|
181
215
|
</li>
|
182
216
|
|
183
217
|
|
@@ -340,7 +374,7 @@ HTTP request).</p>
|
|
340
374
|
<li class="public ">
|
341
375
|
<span class="summary_signature">
|
342
376
|
|
343
|
-
<a href="#
|
377
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ String </a>
|
344
378
|
|
345
379
|
|
346
380
|
|
@@ -355,20 +389,16 @@ HTTP request).</p>
|
|
355
389
|
|
356
390
|
|
357
391
|
<span class="summary_desc"><div class='inline'>
|
358
|
-
<p>A
|
392
|
+
<p>A string representation of the non-nil attributes.</p>
|
359
393
|
</div></span>
|
360
394
|
|
361
395
|
</li>
|
362
396
|
|
363
397
|
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ String </a>
|
368
|
-
|
398
|
+
</ul>
|
399
|
+
|
400
|
+
|
369
401
|
|
370
|
-
|
371
|
-
</span>
|
372
402
|
|
373
403
|
|
374
404
|
|
@@ -376,18 +406,21 @@ HTTP request).</p>
|
|
376
406
|
|
377
407
|
|
378
408
|
|
379
|
-
|
380
409
|
|
381
|
-
<span class="summary_desc"><div class='inline'>
|
382
|
-
<p>A string representation of the non-nil attributes.</p>
|
383
|
-
</div></span>
|
384
410
|
|
385
|
-
</li>
|
386
|
-
|
387
|
-
|
388
|
-
</ul>
|
389
411
|
|
390
|
-
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Helpers/AttributeToHash.html" title="Greeve::Helpers::AttributeToHash (module)">Helpers::AttributeToHash</a></span></h3>
|
423
|
+
<p class="inherited"><span class='object_link'><a href="Helpers/AttributeToHash.html#to_h-instance_method" title="Greeve::Helpers::AttributeToHash#to_h (method)">#to_h</a></span></p>
|
391
424
|
<div id="constructor_details" class="method_details_list">
|
392
425
|
<h2>Constructor Details</h2>
|
393
426
|
|
@@ -517,6 +550,9 @@ request</p>
|
|
517
550
|
<pre class="lines">
|
518
551
|
|
519
552
|
|
553
|
+
124
|
554
|
+
125
|
555
|
+
126
|
520
556
|
127
|
521
557
|
128
|
522
558
|
129
|
@@ -530,13 +566,10 @@ request</p>
|
|
530
566
|
137
|
531
567
|
138
|
532
568
|
139
|
533
|
-
140
|
534
|
-
141
|
535
|
-
142
|
536
|
-
143</pre>
|
569
|
+
140</pre>
|
537
570
|
</td>
|
538
571
|
<td>
|
539
|
-
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line
|
572
|
+
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 124</span>
|
540
573
|
|
541
574
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
542
575
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>TypeError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Cannot instantiate an abstract class</span><span class='tstring_end'>"</span></span> \
|
@@ -676,79 +709,21 @@ request</p>
|
|
676
709
|
<pre class="lines">
|
677
710
|
|
678
711
|
|
679
|
-
22
|
680
|
-
23
|
681
|
-
24
|
682
|
-
25
|
683
|
-
26
|
684
|
-
27
|
685
|
-
28
|
686
|
-
29
|
687
|
-
30
|
688
712
|
31
|
689
713
|
32
|
690
714
|
33
|
691
715
|
34
|
692
716
|
35
|
693
|
-
36
|
694
|
-
37
|
695
|
-
38
|
696
|
-
39
|
697
|
-
40
|
698
|
-
41
|
699
|
-
42
|
700
|
-
43
|
701
|
-
44
|
702
|
-
45
|
703
|
-
46
|
704
|
-
47
|
705
|
-
48
|
706
|
-
49
|
707
|
-
50
|
708
|
-
51
|
709
|
-
52
|
710
|
-
53
|
711
|
-
54
|
712
|
-
55
|
713
|
-
56</pre>
|
717
|
+
36</pre>
|
714
718
|
</td>
|
715
719
|
<td>
|
716
|
-
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line
|
720
|
+
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 31</span>
|
717
721
|
|
718
722
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attribute'>attribute</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
719
|
-
<span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
720
723
|
<span class='ivar'>@attributes</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
721
724
|
|
722
|
-
<span class='id identifier
|
723
|
-
<span class='id identifier
|
724
|
-
|
725
|
-
<span class='ivar'>@attributes</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
726
|
-
<span class='label'>xpath:</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:xpath</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
727
|
-
<span class='label'>type:</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
728
|
-
<span class='rbrace'>}</span>
|
729
|
-
|
730
|
-
<span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
731
|
-
<span class='id identifier rubyid_ivar'>ivar</span> <span class='op'>=</span> <span class='id identifier rubyid_instance_variable_get'>instance_variable_get</span><span class='lparen'>(</span><span class='symbol'>:@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
732
|
-
<span class='kw'>return</span> <span class='id identifier rubyid_ivar'>ivar</span> <span class='kw'>unless</span> <span class='id identifier rubyid_ivar'>ivar</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
733
|
-
|
734
|
-
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='ivar'>@xml_element</span><span class='period'>.</span><span class='id identifier rubyid_locate'>locate</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:xpath</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
735
|
-
|
736
|
-
<span class='kw'>unless</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
737
|
-
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span>
|
738
|
-
<span class='kw'>case</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span>
|
739
|
-
<span class='kw'>when</span> <span class='symbol'>:integer</span>
|
740
|
-
<span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
741
|
-
<span class='kw'>when</span> <span class='symbol'>:numeric</span>
|
742
|
-
<span class='const'>BigDecimal</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
743
|
-
<span class='kw'>when</span> <span class='symbol'>:string</span>
|
744
|
-
<span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
745
|
-
<span class='kw'>when</span> <span class='symbol'>:datetime</span>
|
746
|
-
<span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> UTC</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
747
|
-
<span class='kw'>end</span>
|
748
|
-
<span class='kw'>end</span>
|
749
|
-
|
750
|
-
<span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='symbol'>:@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
751
|
-
<span class='kw'>end</span>
|
725
|
+
<span class='id identifier rubyid_add_attribute'>add_attribute</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
726
|
+
<span class='id identifier rubyid_define_attribute_method'>define_attribute_method</span><span class='lparen'>(</span><span class='symbol'>:class</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
752
727
|
<span class='kw'>end</span></pre>
|
753
728
|
</td>
|
754
729
|
</tr>
|
@@ -795,14 +770,27 @@ request</p>
|
|
795
770
|
|
796
771
|
—
|
797
772
|
<div class='inline'>
|
798
|
-
<p>path of the API endpoint.
|
799
|
-
|
773
|
+
<p>path of the API endpoint. It shouldn't include the leading slash `/`,
|
774
|
+
or the extension `.xml.aspx`</p>
|
800
775
|
</div>
|
801
776
|
|
802
777
|
</li>
|
803
778
|
|
804
779
|
</ul>
|
805
780
|
|
781
|
+
<p class="tag_title">Raises:</p>
|
782
|
+
<ul class="raise">
|
783
|
+
|
784
|
+
<li>
|
785
|
+
|
786
|
+
|
787
|
+
<span class='type'>(<tt>ArgumentError</tt>)</span>
|
788
|
+
|
789
|
+
|
790
|
+
|
791
|
+
</li>
|
792
|
+
|
793
|
+
</ul>
|
806
794
|
|
807
795
|
</div><table class="source_code">
|
808
796
|
<tr>
|
@@ -810,17 +798,146 @@ request</p>
|
|
810
798
|
<pre class="lines">
|
811
799
|
|
812
800
|
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
801
|
+
106
|
802
|
+
107
|
803
|
+
108
|
804
|
+
109
|
805
|
+
110
|
806
|
+
111</pre>
|
817
807
|
</td>
|
818
808
|
<td>
|
819
|
-
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line
|
809
|
+
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 106</span>
|
820
810
|
|
821
811
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
822
|
-
<span class='
|
823
|
-
|
812
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Endpoint shouldn't start with a slash</span><span class='tstring_end'>"</span></span> \
|
813
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_start_with?'>start_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
814
|
+
|
815
|
+
<span class='ivar'>@endpoint</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
|
816
|
+
<span class='kw'>end</span></pre>
|
817
|
+
</td>
|
818
|
+
</tr>
|
819
|
+
</table>
|
820
|
+
</div>
|
821
|
+
|
822
|
+
<div class="method_details ">
|
823
|
+
<h3 class="signature " id="namespace-class_method">
|
824
|
+
|
825
|
+
.<strong>namespace</strong>(name, opts = {}, &block) ⇒ <tt>Object</tt>
|
826
|
+
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
|
831
|
+
</h3><div class="docstring">
|
832
|
+
<div class="discussion">
|
833
|
+
|
834
|
+
<p>A DSL method to nest a set of attributes within a namespace.</p>
|
835
|
+
|
836
|
+
|
837
|
+
</div>
|
838
|
+
</div>
|
839
|
+
<div class="tags">
|
840
|
+
|
841
|
+
<div class="examples">
|
842
|
+
<p class="tag_title">Examples:</p>
|
843
|
+
|
844
|
+
|
845
|
+
<pre class="example code"><code><span class='id identifier rubyid_namespace'>namespace</span> <span class='symbol'>:general_settings</span><span class='comma'>,</span> <span class='label'>xpath:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>eveapi/result/generalSettings</span><span class='tstring_end'>"</span></span> <span class='kw'>do</span>
|
846
|
+
<span class='id identifier rubyid_attribute'>attribute</span> <span class='symbol'>:usage_flags</span><span class='comma'>,</span> <span class='label'>xpath:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>usageFlags/?[0]</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>type:</span> <span class='symbol'>:integer</span>
|
847
|
+
<span class='kw'>end</span></code></pre>
|
848
|
+
|
849
|
+
</div>
|
850
|
+
<p class="tag_title">Parameters:</p>
|
851
|
+
<ul class="param">
|
852
|
+
|
853
|
+
<li>
|
854
|
+
|
855
|
+
<span class='name'>name</span>
|
856
|
+
|
857
|
+
|
858
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
859
|
+
|
860
|
+
|
861
|
+
|
862
|
+
—
|
863
|
+
<div class='inline'>
|
864
|
+
<p>the Ruby name for this namespace</p>
|
865
|
+
</div>
|
866
|
+
|
867
|
+
</li>
|
868
|
+
|
869
|
+
<li>
|
870
|
+
|
871
|
+
<span class='name'>opts</span>
|
872
|
+
|
873
|
+
|
874
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
875
|
+
|
876
|
+
|
877
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
878
|
+
|
879
|
+
|
880
|
+
—
|
881
|
+
<div class='inline'>
|
882
|
+
<p>a customizable set of options</p>
|
883
|
+
</div>
|
884
|
+
|
885
|
+
</li>
|
886
|
+
|
887
|
+
</ul>
|
888
|
+
|
889
|
+
|
890
|
+
|
891
|
+
|
892
|
+
|
893
|
+
|
894
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
895
|
+
<ul class="option">
|
896
|
+
|
897
|
+
<li>
|
898
|
+
<span class="name">:xpath</span>
|
899
|
+
<span class="type">(<tt>Symbol</tt>)</span>
|
900
|
+
<span class="default">
|
901
|
+
|
902
|
+
</span>
|
903
|
+
|
904
|
+
— <div class='inline'>
|
905
|
+
<p>the xpath string used to locate the namespace in the XML element</p>
|
906
|
+
</div>
|
907
|
+
|
908
|
+
</li>
|
909
|
+
|
910
|
+
</ul>
|
911
|
+
|
912
|
+
|
913
|
+
|
914
|
+
|
915
|
+
|
916
|
+
</div><table class="source_code">
|
917
|
+
<tr>
|
918
|
+
<td>
|
919
|
+
<pre class="lines">
|
920
|
+
|
921
|
+
|
922
|
+
49
|
923
|
+
50
|
924
|
+
51
|
925
|
+
52
|
926
|
+
53
|
927
|
+
54
|
928
|
+
55
|
929
|
+
56</pre>
|
930
|
+
</td>
|
931
|
+
<td>
|
932
|
+
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 49</span>
|
933
|
+
|
934
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_namespace'>namespace</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
935
|
+
<span class='ivar'>@attributes</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
936
|
+
|
937
|
+
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:namespace</span>
|
938
|
+
|
939
|
+
<span class='id identifier rubyid_add_attribute'>add_attribute</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
940
|
+
<span class='id identifier rubyid_define_namespace_method'>define_namespace_method</span><span class='lparen'>(</span><span class='symbol'>:class</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
824
941
|
<span class='kw'>end</span></pre>
|
825
942
|
</td>
|
826
943
|
</tr>
|
@@ -955,27 +1072,17 @@ request</p>
|
|
955
1072
|
94
|
956
1073
|
95
|
957
1074
|
96
|
958
|
-
97
|
959
|
-
98
|
960
|
-
99
|
961
|
-
100
|
962
|
-
101
|
963
|
-
102</pre>
|
1075
|
+
97</pre>
|
964
1076
|
</td>
|
965
1077
|
<td>
|
966
1078
|
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 72</span>
|
967
1079
|
|
968
1080
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_rowset'>rowset</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
969
|
-
<span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
970
1081
|
<span class='ivar'>@attributes</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
971
1082
|
|
972
|
-
<span class='id identifier
|
973
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>`:xpath` not specified for `</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>`</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:xpath</span><span class='rbracket'>]</span>
|
1083
|
+
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:rowset</span>
|
974
1084
|
|
975
|
-
<span class='
|
976
|
-
<span class='label'>xpath:</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:xpath</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
977
|
-
<span class='label'>type:</span> <span class='symbol'>:rowset</span><span class='comma'>,</span>
|
978
|
-
<span class='rbrace'>}</span>
|
1085
|
+
<span class='id identifier rubyid_add_attribute'>add_attribute</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
979
1086
|
|
980
1087
|
<span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
981
1088
|
<span class='id identifier rubyid_ivar'>ivar</span> <span class='op'>=</span> <span class='id identifier rubyid_instance_variable_get'>instance_variable_get</span><span class='lparen'>(</span><span class='symbol'>:@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
@@ -1052,12 +1159,12 @@ refreshed</p>
|
|
1052
1159
|
<pre class="lines">
|
1053
1160
|
|
1054
1161
|
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1162
|
+
155
|
1163
|
+
156
|
1164
|
+
157</pre>
|
1058
1165
|
</td>
|
1059
1166
|
<td>
|
1060
|
-
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line
|
1167
|
+
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 155</span>
|
1061
1168
|
|
1062
1169
|
<span class='kw'>def</span> <span class='id identifier rubyid_cache_expired?'>cache_expired?</span>
|
1063
1170
|
<span class='op'>!</span><span class='lparen'>(</span><span class='id identifier rubyid_cached_until'>cached_until</span> <span class='op'>&&</span> <span class='id identifier rubyid_cached_until'>cached_until</span> <span class='op'>></span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='rparen'>)</span>
|
@@ -1113,15 +1220,15 @@ HTTP request)</p>
|
|
1113
1220
|
<pre class="lines">
|
1114
1221
|
|
1115
1222
|
|
1223
|
+
161
|
1224
|
+
162
|
1225
|
+
163
|
1116
1226
|
164
|
1117
1227
|
165
|
1118
|
-
166
|
1119
|
-
167
|
1120
|
-
168
|
1121
|
-
169</pre>
|
1228
|
+
166</pre>
|
1122
1229
|
</td>
|
1123
1230
|
<td>
|
1124
|
-
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line
|
1231
|
+
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 161</span>
|
1125
1232
|
|
1126
1233
|
<span class='kw'>def</span> <span class='id identifier rubyid_cached_until'>cached_until</span>
|
1127
1234
|
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='ivar'>@xml_element</span>
|
@@ -1160,19 +1267,19 @@ HTTP request)</p>
|
|
1160
1267
|
<pre class="lines">
|
1161
1268
|
|
1162
1269
|
|
1270
|
+
169
|
1271
|
+
170
|
1272
|
+
171
|
1163
1273
|
172
|
1164
1274
|
173
|
1165
1275
|
174
|
1166
1276
|
175
|
1167
1277
|
176
|
1168
1278
|
177
|
1169
|
-
178
|
1170
|
-
179
|
1171
|
-
180
|
1172
|
-
181</pre>
|
1279
|
+
178</pre>
|
1173
1280
|
</td>
|
1174
1281
|
<td>
|
1175
|
-
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line
|
1282
|
+
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 169</span>
|
1176
1283
|
|
1177
1284
|
<span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
|
1178
1285
|
<span class='id identifier rubyid_attrs'>attrs</span> <span class='op'>=</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
@@ -1234,15 +1341,15 @@ hasn't expired</p>
|
|
1234
1341
|
<pre class="lines">
|
1235
1342
|
|
1236
1343
|
|
1344
|
+
146
|
1345
|
+
147
|
1346
|
+
148
|
1237
1347
|
149
|
1238
1348
|
150
|
1239
|
-
151
|
1240
|
-
152
|
1241
|
-
153
|
1242
|
-
154</pre>
|
1349
|
+
151</pre>
|
1243
1350
|
</td>
|
1244
1351
|
<td>
|
1245
|
-
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line
|
1352
|
+
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 146</span>
|
1246
1353
|
|
1247
1354
|
<span class='kw'>def</span> <span class='id identifier rubyid_refresh'>refresh</span>
|
1248
1355
|
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_cache_expired?'>cache_expired?</span>
|
@@ -1253,83 +1360,6 @@ hasn't expired</p>
|
|
1253
1360
|
</td>
|
1254
1361
|
</tr>
|
1255
1362
|
</table>
|
1256
|
-
</div>
|
1257
|
-
|
1258
|
-
<div class="method_details ">
|
1259
|
-
<h3 class="signature " id="to_h-instance_method">
|
1260
|
-
|
1261
|
-
#<strong>to_h</strong> ⇒ <tt>Hash</tt>
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
</h3><div class="docstring">
|
1268
|
-
<div class="discussion">
|
1269
|
-
|
1270
|
-
<p>Returns a hash of non-nil attributes</p>
|
1271
|
-
|
1272
|
-
|
1273
|
-
</div>
|
1274
|
-
</div>
|
1275
|
-
<div class="tags">
|
1276
|
-
|
1277
|
-
<p class="tag_title">Returns:</p>
|
1278
|
-
<ul class="return">
|
1279
|
-
|
1280
|
-
<li>
|
1281
|
-
|
1282
|
-
|
1283
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
—
|
1288
|
-
<div class='inline'>
|
1289
|
-
<p>a hash of non-nil attributes</p>
|
1290
|
-
</div>
|
1291
|
-
|
1292
|
-
</li>
|
1293
|
-
|
1294
|
-
</ul>
|
1295
|
-
|
1296
|
-
</div><table class="source_code">
|
1297
|
-
<tr>
|
1298
|
-
<td>
|
1299
|
-
<pre class="lines">
|
1300
|
-
|
1301
|
-
|
1302
|
-
194
|
1303
|
-
195
|
1304
|
-
196
|
1305
|
-
197
|
1306
|
-
198
|
1307
|
-
199
|
1308
|
-
200
|
1309
|
-
201
|
1310
|
-
202
|
1311
|
-
203
|
1312
|
-
204
|
1313
|
-
205</pre>
|
1314
|
-
</td>
|
1315
|
-
<td>
|
1316
|
-
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 194</span>
|
1317
|
-
|
1318
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
1319
|
-
<span class='id identifier rubyid_attributes'>attributes</span><span class='period'>
|
1320
|
-
</span><span class='id identifier rubyid_ .keys'> .keys</span><span class='period'>
|
1321
|
-
</span><span class='id identifier rubyid_ .map'> .map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='op'>|</span>
|
1322
|
-
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid___send__'>__send__</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
1323
|
-
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Rowset</span><span class='rparen'>)</span>
|
1324
|
-
|
1325
|
-
<span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rbracket'>]</span>
|
1326
|
-
<span class='rbrace'>}</span><span class='period'>
|
1327
|
-
</span><span class='id identifier rubyid_ .to_h'> .to_h</span><span class='period'>
|
1328
|
-
</span><span class='id identifier rubyid_ .reject'> .reject</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='rbrace'>}</span>
|
1329
|
-
<span class='kw'>end</span></pre>
|
1330
|
-
</td>
|
1331
|
-
</tr>
|
1332
|
-
</table>
|
1333
1363
|
</div>
|
1334
1364
|
|
1335
1365
|
<div class="method_details ">
|
@@ -1376,17 +1406,17 @@ hasn't expired</p>
|
|
1376
1406
|
<pre class="lines">
|
1377
1407
|
|
1378
1408
|
|
1409
|
+
181
|
1410
|
+
182
|
1411
|
+
183
|
1379
1412
|
184
|
1380
1413
|
185
|
1381
1414
|
186
|
1382
1415
|
187
|
1383
|
-
188
|
1384
|
-
189
|
1385
|
-
190
|
1386
|
-
191</pre>
|
1416
|
+
188</pre>
|
1387
1417
|
</td>
|
1388
1418
|
<td>
|
1389
|
-
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line
|
1419
|
+
<pre class="code"><span class="info file"># File 'lib/greeve/base_item.rb', line 181</span>
|
1390
1420
|
|
1391
1421
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
1392
1422
|
<span class='id identifier rubyid_to_h'>to_h</span><span class='period'>
|
@@ -1406,7 +1436,7 @@ hasn't expired</p>
|
|
1406
1436
|
</div>
|
1407
1437
|
|
1408
1438
|
<div id="footer">
|
1409
|
-
Generated on
|
1439
|
+
Generated on Mon Dec 26 15:56:23 2016 by
|
1410
1440
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1411
1441
|
0.9.5 (ruby-2.1.7).
|
1412
1442
|
</div>
|