class Medie::OpenSearch::Descriptor

Public Class Methods

new(hash) click to toggle source
# File lib/medie/open_search/descriptor.rb, line 5
def initialize(hash)
  @hash = hash["OpenSearchDescription"]
end

Public Instance Methods

urls() click to toggle source
# File lib/medie/open_search/descriptor.rb, line 9
def urls
  uris = @hash["Url"]
  uris.kind_of?(Array) ? uris : [uris]
end