Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F461725
api_version.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 5:55 PM
Size
234 B
Mime Type
text/x-ruby
Expires
Tue, May 20, 5:55 PM (1 d, 15 h)
Engine
blob
Format
Raw Data
Handle
220115
Attached To
rARCHIVING archiving
api_version.rb
View Options
class
ApiVersion
def
initialize
(
options
=
{})
@version
=
options
[
:version
]
@default
=
options
[
:default
]
end
def
matches?
(
req
)
@default
||
req
.
headers
[
'Accept'
].
include?
(
"application/archiving.v
#{
@version
}
"
)
end
end
Event Timeline
Log In to Comment