Class: Krant::TranslatedBroadcastMessage Private

Inherits:
Object
  • Object
show all
Defined in:
app/models/krant/translated_broadcast_message.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: Query

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ TranslatedBroadcastMessage

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of TranslatedBroadcastMessage.



6
7
8
# File 'app/models/krant/translated_broadcast_message.rb', line 6

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



4
5
6
# File 'app/models/krant/translated_broadcast_message.rb', line 4

def text
  @text
end

Class Method Details

.activeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
# File 'app/models/krant/translated_broadcast_message.rb', line 10

def self.active
  Query.new.active
end