class Gpdb::REST::Pronunciation::Target

Attributes

id[RW]
origin[RW]
pagination_info[RW]
pronunciations[RW]
transcription[RW]

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/gpdb/rest/pronunciation/target.rb, line 10
def initialize(attributes = {})
  self.pagination_info = attributes[:target_pagination_info]
  self.origin          = attributes[:target_origin]
  self.links           = attributes[:links]
  self.transcription   = attributes[:target_transcription]
  self.id              = attributes[:target_id]
  self.pronunciations  = attributes[:pronunciations]&.map do |pronunciation|
    ::Gpdb::REST::Pronunciation::Model.new(pronunciation)
  end
end