Class: BroadcastEvent::SubjectHelpers::SeedSubjectAssociation

Inherits:
Object
  • Object
show all
Defined in:
app/models/broadcast_event/subject_helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ SeedSubjectAssociation

Returns a new instance of SeedSubjectAssociation.



71
72
73
# File 'app/models/broadcast_event/subject_helpers.rb', line 71

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



69
70
71
# File 'app/models/broadcast_event/subject_helpers.rb', line 69

def name
  @name
end

Instance Method Details

#for(seed, _event) ⇒ Object



75
76
77
# File 'app/models/broadcast_event/subject_helpers.rb', line 75

def for(seed, _event)
  Subject.new(name, seed)
end