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,124 @@
|
|
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::Helpers::AddAttribute
|
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::Helpers::AddAttribute";
|
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> » <span class='title'><span class='object_link'><a href="../Helpers.html" title="Greeve::Helpers (module)">Helpers</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">AddAttribute</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::Helpers::AddAttribute
|
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="../Namespace.html" title="Greeve::Namespace (class)">Namespace</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/helpers/add_attribute.rb</dd>
|
89
|
+
</dl>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<h2>Overview</h2><div class="docstring">
|
94
|
+
<div class="discussion">
|
95
|
+
|
96
|
+
<p>Adds a helper method to add an attribute to the attributes hash instance
|
97
|
+
variable.</p>
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
<div class="tags">
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
|
116
|
+
<div id="footer">
|
117
|
+
Generated on Mon Dec 26 15:56:23 2016 by
|
118
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
+
0.9.5 (ruby-2.1.7).
|
120
|
+
</div>
|
121
|
+
|
122
|
+
</div>
|
123
|
+
</body>
|
124
|
+
</html>
|
@@ -0,0 +1,245 @@
|
|
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::Helpers::AttributeToHash
|
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::Helpers::AttributeToHash";
|
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> » <span class='title'><span class='object_link'><a href="../Helpers.html" title="Greeve::Helpers (module)">Helpers</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">AttributeToHash</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::Helpers::AttributeToHash
|
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="../Namespace.html" title="Greeve::Namespace (class)">Namespace</a></span>, <span class='object_link'><a href="../Row.html" title="Greeve::Row (class)">Row</a></span></dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
<dl>
|
87
|
+
<dt>Defined in:</dt>
|
88
|
+
<dd>lib/greeve/helpers/attribute_to_hash.rb</dd>
|
89
|
+
</dl>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<h2>Overview</h2><div class="docstring">
|
94
|
+
<div class="discussion">
|
95
|
+
|
96
|
+
<p>Adds the `#to_h` method.</p>
|
97
|
+
|
98
|
+
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
<div class="tags">
|
102
|
+
|
103
|
+
|
104
|
+
</div>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<h2>
|
113
|
+
Instance Method Summary
|
114
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
115
|
+
</h2>
|
116
|
+
|
117
|
+
<ul class="summary">
|
118
|
+
|
119
|
+
<li class="public ">
|
120
|
+
<span class="summary_signature">
|
121
|
+
|
122
|
+
<a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒ Hash </a>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</span>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
<span class="summary_desc"><div class='inline'>
|
137
|
+
<p>The (private) `#_attributes` method must be implemented for this method to
|
138
|
+
work.</p>
|
139
|
+
</div></span>
|
140
|
+
|
141
|
+
</li>
|
142
|
+
|
143
|
+
|
144
|
+
</ul>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<div id="instance_method_details" class="method_details_list">
|
150
|
+
<h2>Instance Method Details</h2>
|
151
|
+
|
152
|
+
|
153
|
+
<div class="method_details first">
|
154
|
+
<h3 class="signature first" id="to_h-instance_method">
|
155
|
+
|
156
|
+
#<strong>to_h</strong> ⇒ <tt>Hash</tt>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
</h3><div class="docstring">
|
163
|
+
<div class="discussion">
|
164
|
+
|
165
|
+
<p>The (private) `#_attributes` method must be implemented for this method to
|
166
|
+
work.</p>
|
167
|
+
|
168
|
+
|
169
|
+
</div>
|
170
|
+
</div>
|
171
|
+
<div class="tags">
|
172
|
+
|
173
|
+
<p class="tag_title">Returns:</p>
|
174
|
+
<ul class="return">
|
175
|
+
|
176
|
+
<li>
|
177
|
+
|
178
|
+
|
179
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
—
|
184
|
+
<div class='inline'>
|
185
|
+
<p>a hash of non-nil attributes</p>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
</li>
|
189
|
+
|
190
|
+
</ul>
|
191
|
+
|
192
|
+
</div><table class="source_code">
|
193
|
+
<tr>
|
194
|
+
<td>
|
195
|
+
<pre class="lines">
|
196
|
+
|
197
|
+
|
198
|
+
9
|
199
|
+
10
|
200
|
+
11
|
201
|
+
12
|
202
|
+
13
|
203
|
+
14
|
204
|
+
15
|
205
|
+
16
|
206
|
+
17
|
207
|
+
18
|
208
|
+
19
|
209
|
+
20
|
210
|
+
21</pre>
|
211
|
+
</td>
|
212
|
+
<td>
|
213
|
+
<pre class="code"><span class="info file"># File 'lib/greeve/helpers/attribute_to_hash.rb', line 9</span>
|
214
|
+
|
215
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
216
|
+
<span class='id identifier rubyid__attributes'>_attributes</span><span class='period'>
|
217
|
+
</span><span class='id identifier rubyid_ .keys'> .keys</span><span class='period'>
|
218
|
+
</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>
|
219
|
+
<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>
|
220
|
+
<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>
|
221
|
+
<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_h'>to_h</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'>Namespace</span><span class='rparen'>)</span>
|
222
|
+
|
223
|
+
<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>
|
224
|
+
<span class='rbrace'>}</span><span class='period'>
|
225
|
+
</span><span class='id identifier rubyid_ .to_h'> .to_h</span><span class='period'>
|
226
|
+
</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>
|
227
|
+
<span class='kw'>end</span></pre>
|
228
|
+
</td>
|
229
|
+
</tr>
|
230
|
+
</table>
|
231
|
+
</div>
|
232
|
+
|
233
|
+
</div>
|
234
|
+
|
235
|
+
</div>
|
236
|
+
|
237
|
+
<div id="footer">
|
238
|
+
Generated on Mon Dec 26 15:56:23 2016 by
|
239
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
240
|
+
0.9.5 (ruby-2.1.7).
|
241
|
+
</div>
|
242
|
+
|
243
|
+
</div>
|
244
|
+
</body>
|
245
|
+
</html>
|
@@ -0,0 +1,124 @@
|
|
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::Helpers::DefineAttributeMethod
|
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::Helpers::DefineAttributeMethod";
|
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 (D)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Greeve.html" title="Greeve (module)">Greeve</a></span></span> » <span class='title'><span class='object_link'><a href="../Helpers.html" title="Greeve::Helpers (module)">Helpers</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">DefineAttributeMethod</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::Helpers::DefineAttributeMethod
|
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></dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
<dl>
|
87
|
+
<dt>Defined in:</dt>
|
88
|
+
<dd>lib/greeve/helpers/define_attribute_method.rb</dd>
|
89
|
+
</dl>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<h2>Overview</h2><div class="docstring">
|
94
|
+
<div class="discussion">
|
95
|
+
|
96
|
+
<p>Adds a helper method to define a class or instance method for a given
|
97
|
+
attribute.</p>
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
<div class="tags">
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
|
116
|
+
<div id="footer">
|
117
|
+
Generated on Sat Nov 12 22:02:07 2016 by
|
118
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
+
0.9.5 (ruby-2.1.7).
|
120
|
+
</div>
|
121
|
+
|
122
|
+
</div>
|
123
|
+
</body>
|
124
|
+
</html>
|