-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathmodels.rb
More file actions
93 lines (82 loc) · 2.92 KB
/
Copy pathmodels.rb
File metadata and controls
93 lines (82 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
class Models
@docs = [
{"source_id"=>40003,
"object"=>"125247353762549.02",
"docid"=>"rhodes/extensions",
"title"=>"Extending the Rhodes Framework",
"menutitle"=>"Build Application",
"type"=>"devguide",
"keywords"=>"ios, android, blackberry, windows mobile,",
"categories"=>"",
"contentfile"=>"rhodes/extensions",
"description"=>"There are three ways to extend Rhodes. You can add to the Ruby gems supported by Rhodes ('Rhodes extensions'). You can create new 'native extensions' in the underlying SDK for a given smartphone operating system. You can extend the types of views available in Rhodes ('native extensions').",
"keyclasses"=>[],
"seealso"=>[{"name"=>"Native Extensions Webinar","url"=>"https://developer.motorolasolutions.com/docs/DOC-1722"},
{"name"=>"Native View Sample","url"=>"https://github.com/rhomobile/rhodes-system-api-samples/tree/master/extensions/rainbow/"}],
"sampleapp"=>"", "products"=>"", "visiblemenu"=>true, "visibledoc"=>true},
{"source_id"=>40003,
"object"=>"",
"docid"=>"rhoelements/rfid",
"title"=>"",
"menutitle"=>"",
"type"=>"apiref",
"keywords"=>"",
"categories"=>"",
"contentfile"=>"rhoelements/rfid",
"description"=>"",
"keyclasses"=>[],
"seealso"=>[{"name"=>"RFID PlugIn","url"=>"https://support.symbol.com/support/search.do?cmd=displayKC&docType=kc&externalId=13856&sliceId=&dialogID=470318458&stateId=1%200%20470304681
"},
{"name"=>"RhoMobile Suite SP1","url"=>"http://developer.motorolasolutions.com"}],
"sampleapp"=>"", "products"=>"", "visiblemenu"=>true, "visibledoc"=>true},
{"source_id"=>40003,
"object"=>"",
"docid"=>"api/barcode",
"title"=>"",
"menutitle"=>"",
"type"=>"apiref",
"keywords"=>"",
"categories"=>"",
"contentfile"=>"api/barcode",
"description"=>"",
"keyclasses"=>[],
"seealso"=>[{"name"=>"Legacy Mobile APIs","url"=>"/rhoelements/apicompatibility"},
],
"sampleapp"=>"", "products"=>"", "visiblemenu"=>true, "visibledoc"=>true},
{"source_id"=>40003,
"object"=>"",
"docid"=>"api/system",
"title"=>"",
"menutitle"=>"",
"type"=>"apiref",
"keywords"=>"",
"categories"=>"",
"contentfile"=>"api/system",
"description"=>"",
"keyclasses"=>[],
"seealso"=>[{"name"=>"Legacy Mobile APIs","url"=>"/rhoelements/apicompatibility"},
],
"sampleapp"=>"", "products"=>"", "visiblemenu"=>true, "visibledoc"=>true},
{"source_id"=>40003,
"object"=>"",
"docid"=>"api/process",
"title"=>"",
"menutitle"=>"",
"type"=>"apiref",
"keywords"=>"",
"categories"=>"",
"contentfile"=>"api/process",
"description"=>"",
"keyclasses"=>[],
"seealso"=>[{"name"=>"Legacy Mobile APIs","url"=>"/rhoelements/apicompatibility"},
],
"sampleapp"=>"", "products"=>"", "visiblemenu"=>true, "visibledoc"=>true}
]
def self.docs()
return @docs
end
def self.docmodel(filename)
@docmodel = @docs.detect {|a| a["contentfile"] == filename }
return @docmodel
end
end