Class: E4U::Google::Emoji

Inherits:
Base::Emoji show all
Defined in:
lib/e4u/google.rb

Instance Method Summary collapse

Methods inherited from Base::Emoji

#alternate?, #cp932, #initialize, #utf8

Constructor Details

This class inherits a constructor from E4U::Base::Emoji

Instance Method Details

#docomoObject



43
# File 'lib/e4u/google.rb', line 43

def docomo; nil; end

#glyphRefIDObject



44
# File 'lib/e4u/google.rb', line 44

def glyphRefID; nil; end

#googleObject



45
# File 'lib/e4u/google.rb', line 45

def google; nil; end

#idObject



46
# File 'lib/e4u/google.rb', line 46

def id; nil; end

#img_fromObject



47
# File 'lib/e4u/google.rb', line 47

def img_from; nil; end

#in_proposalObject



48
# File 'lib/e4u/google.rb', line 48

def in_proposal; nil; end

#kddiObject



49
# File 'lib/e4u/google.rb', line 49

def kddi; nil; end

#nameObject



50
# File 'lib/e4u/google.rb', line 50

def name; nil; end

#oldnameObject



51
# File 'lib/e4u/google.rb', line 51

def oldname; nil; end

#proposal?Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/e4u/google.rb', line 57

def proposal?
  in_proposal == 'yes'
end

#softbankObject



52
# File 'lib/e4u/google.rb', line 52

def softbank; nil; end

#text_fallbackObject



53
# File 'lib/e4u/google.rb', line 53

def text_fallback; nil; end

#text_reprObject



54
# File 'lib/e4u/google.rb', line 54

def text_repr; nil; end

#translate(carrier) ⇒ Object



61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/e4u/google.rb', line 61

def translate carrier
  case carrier.to_s.downcase
  when 'docomo'
    E4U.docomo.find{ |e| e[:unicode] == docomo }.docomo_emoji
  when 'kddi'
    E4U.kddi.find{ |e| e[:unicode] == kddi }.kddi_emoji
  when 'softbank'
    E4U.softbank.find{ |e| e[:unicode] == softbank }.softbank_emoji
  else
    raise ArgumentError
  end
end

#unicodeObject



55
# File 'lib/e4u/google.rb', line 55

def unicode; nil; end