Class: E4U::Google::Emoji

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

Instance Attribute Summary

Attributes inherited from Base::Emoji

#fallback_text

Instance Method Summary collapse

Methods inherited from Base::Emoji

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

Constructor Details

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

Instance Method Details

#docomoObject



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

def docomo; nil; end

#glyphRefIDObject



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

def glyphRefID; nil; end

#googleObject



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

def google; nil; end

#idObject



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

def id; nil; end

#img_fromObject



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

def img_from; nil; end

#in_proposalObject



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

def in_proposal; nil; end

#kddiObject



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

def kddi; nil; end

#nameObject



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

def name; nil; end

#oldnameObject



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

def oldname; nil; end

#proposal?Boolean

Returns:

  • (Boolean)


69
70
71
# File 'lib/e4u/google.rb', line 69

def proposal?
  in_proposal == 'yes'
end

#softbankObject



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

def softbank; nil; end

#text_fallbackObject



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

def text_fallback; nil; end

#text_reprObject



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

def text_repr; nil; end

#translate(carrier) ⇒ Object



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/e4u/google.rb', line 73

def translate carrier
  case carrier.to_s.downcase
  when 'docomo'
    emoji = E4U.docomo.find{ |e| e[:unicode] == docomo }
    return emoji.docomo_emoji if emoji
    E4U.google.find{ |e| e[:google] == google }.docomo_emoji

  when 'kddi'
    emoji = E4U.kddi.find{ |e| e[:unicode] == kddi }
    return emoji.kddi_emoji if emoji
    E4U.google.find{ |e| e[:google] == google }.kddi_emoji

  when 'softbank'
    emoji = E4U.softbank.find{ |e| e[:unicode] == softbank }
    return emoji.softbank_emoji if emoji
    E4U.google.find{ |e| e[:google] == google }.softbank_emoji

  else
    raise ArgumentError
  end
end

#unicodeObject



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

def unicode; nil; end