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


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

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


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

def name
  @name
end

Instance Method Details

#for(seed, _event) ⇒ Object


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

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