Class: SatoriLikeDictionary::Entries

Inherits:
Array
  • Object
show all
Defined in:
lib/satori_like_dictionary.rb

Overview

random select entries

Instance Method Summary collapse

Instance Method Details

#render(events, request) ⇒ Object

render the content

Parameters:

  • events (Events)

    events definition

  • request (OpenStruct)

    request hash


235
236
237
# File 'lib/satori_like_dictionary.rb', line 235

def render(events, request)
  shuffle.first.render(events, request)
end