class StatusManager::StatusStoreList

Attributes

status_stores[RW]

Public Class Methods

new() click to toggle source
# File lib/status-manager/status_store.rb, line 5
def initialize
  @status_stores = []
end

Public Instance Methods

add(status_store) click to toggle source
# File lib/status-manager/status_store.rb, line 9
def add(status_store)
  @status_stores << status_store
end
get(attribute) click to toggle source
# File lib/status-manager/status_store.rb, line 13
def get(attribute)
  @status_stores.select { |status_store| status_store.attribute_name == attribute }.first
end