Module: Emojidex::API::Emoji
- Included in:
- Client
- Defined in:
- lib/emojidex/api/emoji.rb
Overview
Get emoji from API
Instance Method Summary collapse
- #emoji(*args) ⇒ Object
- #emoji_detailed(*args) ⇒ Object
- #single_emoji(*args) ⇒ Object
- #single_emoji_detailed(*args) ⇒ Object
Instance Method Details
#emoji(*args) ⇒ Object
5 6 7 8 |
# File 'lib/emojidex/api/emoji.rb', line 5 def emoji(*args) response = get('/api/v1/emoji.json', args) response[:body]['emoji'] end |
#emoji_detailed(*args) ⇒ Object
15 16 17 18 |
# File 'lib/emojidex/api/emoji.rb', line 15 def emoji_detailed(*args) response = get('/api/v1/emoji/detailed.json', args) response[:body] end |
#single_emoji(*args) ⇒ Object
10 11 12 13 |
# File 'lib/emojidex/api/emoji.rb', line 10 def single_emoji(*args) response = get('/api/v1/emoji/emoji.json', args) response[:body] end |
#single_emoji_detailed(*args) ⇒ Object
20 21 22 23 |
# File 'lib/emojidex/api/emoji.rb', line 20 def single_emoji_detailed(*args) response = get('/api/v1/emoji/1/detailed.json', args) response[:body] end |