Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5402354
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
Wed, Sep 9, 9:30 PM
Size
234 B
Mime Type
text/x-ruby
Expires
Fri, Sep 11, 9:30 PM (2 h, 24 m)
Engine
blob
Format
Raw Data
Handle
440437
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