Class: Bananajour::Bonjour::RepositoryBrowser

Inherits:
Object
  • Object
show all
Defined in:
lib/bigbananajour/bananajour/bonjour/repository_browser.rb

Instance Method Summary collapse

Instance Method Details

#repositoriesObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/bigbananajour/bananajour/bonjour/repository_browser.rb', line 4

def repositories
  @browser.replies.map do |reply|
    Repository.new(
      reply.text_record["name"],
      reply.text_record["uri"],
      Person.new(
        reply.text_record["bjour-name"],
        reply.text_record["bjour-email"],
        reply.text_record["bjour-uri"],
        reply.text_record["bjour-gravatar"]
      )
    )
  end
end