Class: Semaph::Model::ProjectCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/semaph/model/project_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ ProjectCollection

Returns a new instance of ProjectCollection.



8
9
10
# File 'lib/semaph/model/project_collection.rb', line 8

def initialize(client)
  @client = client
end

Instance Attribute Details

#allObject (readonly)

Returns the value of attribute all.



6
7
8
# File 'lib/semaph/model/project_collection.rb', line 6

def all
  @all
end

Instance Method Details

#reloadObject



12
13
14
15
16
# File 'lib/semaph/model/project_collection.rb', line 12

def reload
  @all = @client.projects.map do |content|
    Project.new @client, content
  end
end