Class: NekosLife::Client

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

Overview

The main module for interaction

Instance Method Summary collapse

Instance Method Details

#analString

Gets an image of `anal`

Returns:

  • (String)

    the image URL with the `anal` type.


51
# File 'lib/nekos.rb', line 51

add_image_endpoint('anal')

#avatarString

Gets an image of `avatar`

Returns:

  • (String)

    the image URL with the `avatar` type.


54
# File 'lib/nekos.rb', line 54

add_image_endpoint('avatar')

#bjString

Gets an image of `bj`

Returns:

  • (String)

    the image URL with the `bj` type.


44
# File 'lib/nekos.rb', line 44

add_image_endpoint('bj')

#blowjobString

Gets an image of `blowjob`

Returns:

  • (String)

    the image URL with the `blowjob` type.


58
# File 'lib/nekos.rb', line 58

add_image_endpoint('blowjob')

#boobsString

Gets an image of `boobs`

Returns:

  • (String)

    the image URL with the `boobs` type.


76
# File 'lib/nekos.rb', line 76

add_image_endpoint('boobs')

#catString

Gets an ascii cat

Returns:

  • (String)

    the cat


126
127
128
# File 'lib/nekos.rb', line 126

def cat
  API.get('cat')['cat']
end

#chat(text, owo = false) ⇒ String

Chat with the API

Parameters:

  • text (String)

    text to query

  • owo (true, false) (defaults to: false)

    whether or not to owoify response text

Returns:

  • (String)

    the response


108
109
110
# File 'lib/nekos.rb', line 108

def chat(text, owo = false)
  API.get("chat?text=#{URI.encode(text)}#{'&owo=true' if owo}")['response']
end

#classicString

Gets an image of `classic`

Returns:

  • (String)

    the image URL with the `classic` type.


65
# File 'lib/nekos.rb', line 65

add_image_endpoint('classic')

#cuddleString

Gets an image of `cuddle`

Returns:

  • (String)

    the image URL with the `cuddle` type.


73
# File 'lib/nekos.rb', line 73

add_image_endpoint('cuddle')

#cumString

Gets an image of `cum`

Returns:

  • (String)

    the image URL with the `cum` type.


30
# File 'lib/nekos.rb', line 30

add_image_endpoint('cum')

#cum_jpgString

Gets an image of `cum_jpg`

Returns:

  • (String)

    the image URL with the `cum_jpg` type.


43
# File 'lib/nekos.rb', line 43

add_image_endpoint('cum_jpg')

#eight_ballEightBallResponse Also known as: eightball

Gets an ascii cat

Returns:


132
133
134
# File 'lib/nekos.rb', line 132

def eight_ball
  EightBallResponse.new(API.get('8ball'))
end

#eroString

Gets an image of `ero`

Returns:

  • (String)

    the image URL with the `ero` type.


80
# File 'lib/nekos.rb', line 80

add_image_endpoint('ero')

#erofeetString Also known as: ero_feet

Gets an image of `erofeet`

Returns:

  • (String)

    the image URL with the `erofeet` type.


55
# File 'lib/nekos.rb', line 55

add_image_endpoint('erofeet')

#erokString Also known as: erokitsune

Gets an image of `erok`

Returns:

  • (String)

    the image URL with the `erok` type.


74
# File 'lib/nekos.rb', line 74

add_image_endpoint('erok')

#erokemoString Also known as: ero_kemo

Gets an image of `erokemo`

Returns:

  • (String)

    the image URL with the `erokemo` type.


31
# File 'lib/nekos.rb', line 31

add_image_endpoint('erokemo')

#eronString Also known as: ero_neko

Gets an image of `eron`

Returns:

  • (String)

    the image URL with the `eron` type.


42
# File 'lib/nekos.rb', line 42

add_image_endpoint('eron')

#eroyuriString Also known as: ero_yuri

Gets an image of `eroyuri`

Returns:

  • (String)

    the image URL with the `eroyuri` type.


41
# File 'lib/nekos.rb', line 41

add_image_endpoint('eroyuri')

#factString

Gets a random fact

Returns:

  • (String)

    the fact


114
115
116
# File 'lib/nekos.rb', line 114

def fact
  API.get('fact')['fact']
end

#feedString

Gets an image of `feed`

Returns:

  • (String)

    the image URL with the `feed` type.


39
# File 'lib/nekos.rb', line 39

add_image_endpoint('feed')

#feetString

Gets an image of `feet`

Returns:

  • (String)

    the image URL with the `feet` type.


22
# File 'lib/nekos.rb', line 22

add_image_endpoint('feet')

#feetgString

Gets an image of `feetg`

Returns:

  • (String)

    the image URL with the `feetg` type.


29
# File 'lib/nekos.rb', line 29

add_image_endpoint('feetg')

#femdomString

Gets an image of `femdom`

Returns:

  • (String)

    the image URL with the `femdom` type.


70
# File 'lib/nekos.rb', line 70

add_image_endpoint('femdom')

#fox_girlString

Gets an image of `fox_girl`

Returns:

  • (String)

    the image URL with the `fox_girl` type.


75
# File 'lib/nekos.rb', line 75

add_image_endpoint('fox_girl')

#futanariString

Gets an image of `futanari`

Returns:

  • (String)

    the image URL with the `futanari` type.


25
# File 'lib/nekos.rb', line 25

add_image_endpoint('futanari')

#gasmString

Gets an image of `gasm`

Returns:

  • (String)

    the image URL with the `gasm` type.


49
# File 'lib/nekos.rb', line 49

add_image_endpoint('gasm')

#gecgString

Gets an image of `gecg`

Returns:

  • (String)

    the image URL with the `gecg` type.


40
# File 'lib/nekos.rb', line 40

add_image_endpoint('gecg')

#hentaiString

Gets an image of `hentai`

Returns:

  • (String)

    the image URL with the `hentai` type.


53
# File 'lib/nekos.rb', line 53

add_image_endpoint('hentai')

#holoString

Gets an image of `holo`

Returns:

  • (String)

    the image URL with the `holo` type.


56
# File 'lib/nekos.rb', line 56

add_image_endpoint('holo')

#holoeroString Also known as: holo_ero, ero_holo

Gets an image of `holoero`

Returns:

  • (String)

    the image URL with the `holoero` type.


61
# File 'lib/nekos.rb', line 61

add_image_endpoint('holoero')

#hololewdString Also known as: holo_lewd, lwed_holo

Gets an image of `hololewd`

Returns:

  • (String)

    the image URL with the `hololewd` type.


26
# File 'lib/nekos.rb', line 26

add_image_endpoint('hololewd')

#hugString

Gets an image of `hug`

Returns:

  • (String)

    the image URL with the `hug` type.


79
# File 'lib/nekos.rb', line 79

add_image_endpoint('hug')

#kemonomimiString

Gets an image of `kemonomimi`

Returns:

  • (String)

    the image URL with the `kemonomimi` type.


47
# File 'lib/nekos.rb', line 47

add_image_endpoint('kemonomimi')

#ketaString

Gets an image of `keta`

Returns:

  • (String)

    the image URL with the `keta` type.


57
# File 'lib/nekos.rb', line 57

add_image_endpoint('keta')

#kissString

Gets an image of `kiss`

Returns:

  • (String)

    the image URL with the `kiss` type.


69
# File 'lib/nekos.rb', line 69

add_image_endpoint('kiss')

#kuniString

Gets an image of `kuni`

Returns:

  • (String)

    the image URL with the `kuni` type.


66
# File 'lib/nekos.rb', line 66

add_image_endpoint('kuni')

#lesString

Gets an image of `les`

Returns:

  • (String)

    the image URL with the `les` type.


32
# File 'lib/nekos.rb', line 32

add_image_endpoint('les')

#lewdString

Gets an image of `lewd`

Returns:

  • (String)

    the image URL with the `lewd` type.


38
# File 'lib/nekos.rb', line 38

add_image_endpoint('lewd')

#lewdkString Also known as: lewd_kitsune

Gets an image of `lewdk`

Returns:

  • (String)

    the image URL with the `lewdk` type.


34
# File 'lib/nekos.rb', line 34

add_image_endpoint('lewdk')

#lewdkemoString Also known as: lewd_kemo

Gets an image of `lewdkemo`

Returns:

  • (String)

    the image URL with the `lewdkemo` type.


27
# File 'lib/nekos.rb', line 27

add_image_endpoint('lewdkemo')

#lizardString

Gets an image of `lizard`

Returns:

  • (String)

    the image URL with the `lizard` type.


62
# File 'lib/nekos.rb', line 62

add_image_endpoint('lizard')

#meowString

Gets an image of `meow`

Returns:

  • (String)

    the image URL with the `meow` type.


36
# File 'lib/nekos.rb', line 36

add_image_endpoint('meow')

#nekoString

Gets an image of `neko`

Returns:

  • (String)

    the image URL with the `neko` type.


71
# File 'lib/nekos.rb', line 71

add_image_endpoint('neko')

#ngifString Also known as: neko_gif

Gets an image of `ngif`

Returns:

  • (String)

    the image URL with the `ngif` type.


35
# File 'lib/nekos.rb', line 35

add_image_endpoint('ngif')

#nsfw_avatarString

Gets an image of `nsfw_avatar`

Returns:

  • (String)

    the image URL with the `nsfw_avatar` type.


48
# File 'lib/nekos.rb', line 48

add_image_endpoint('nsfw_avatar')

#nsfw_neko_gifString

Gets an image of `nsfw_neko_gif`

Returns:

  • (String)

    the image URL with the `nsfw_neko_gif` type.


45
# File 'lib/nekos.rb', line 45

add_image_endpoint('nsfw_neko_gif')

#owoify(text) ⇒ String

OwOifys text.

Parameters:

  • text (String)

    text to owoify

Returns:

  • (String)

    owoified text


100
101
102
# File 'lib/nekos.rb', line 100

def owoify(text)
  API.get("owoify?text=#{URI.encode(text)}")['owo']
end

#patString

Gets an image of `pat`

Returns:

  • (String)

    the image URL with the `pat` type.


68
# File 'lib/nekos.rb', line 68

add_image_endpoint('pat')

#pokeString

Gets an image of `poke`

Returns:

  • (String)

    the image URL with the `poke` type.


50
# File 'lib/nekos.rb', line 50

add_image_endpoint('poke')

#pussyString

Gets an image of `pussy`

Returns:

  • (String)

    the image URL with the `pussy` type.


59
# File 'lib/nekos.rb', line 59

add_image_endpoint('pussy')

#pussy_jpgString

Gets an image of `pussy_jpg`

Returns:

  • (String)

    the image URL with the `pussy_jpg` type.


63
# File 'lib/nekos.rb', line 63

add_image_endpoint('pussy_jpg')

#pwankgString

Gets an image of `pwankg`

Returns:

  • (String)

    the image URL with the `pwankg` type.


64
# File 'lib/nekos.rb', line 64

add_image_endpoint('pwankg')

#Random_hentai_gifString

Gets an image of `Random_hentai_gif`

Returns:

  • (String)

    the image URL with the `Random_hentai_gif` type.


77
# File 'lib/nekos.rb', line 77

add_image_endpoint('Random_hentai_gif')

#slapString

Gets an image of `slap`

Returns:

  • (String)

    the image URL with the `slap` type.


52
# File 'lib/nekos.rb', line 52

add_image_endpoint('slap')

#smallboobsString Also known as: small_boobs

Gets an image of `smallboobs`

Returns:

  • (String)

    the image URL with the `smallboobs` type.


78
# File 'lib/nekos.rb', line 78

add_image_endpoint('smallboobs')

#soloString

Gets an image of `solo`

Returns:

  • (String)

    the image URL with the `solo` type.


46
# File 'lib/nekos.rb', line 46

add_image_endpoint('solo')

#sologString Also known as: solo_girl

Gets an image of `solog`

Returns:

  • (String)

    the image URL with the `solog` type.


28
# File 'lib/nekos.rb', line 28

add_image_endpoint('solog')

#spankString

Gets an image of `spank`

Returns:

  • (String)

    the image URL with the `spank` type.


72
# File 'lib/nekos.rb', line 72

add_image_endpoint('spank')

#tickleString

Gets an image of `tickle`

Returns:

  • (String)

    the image URL with the `tickle` type.


37
# File 'lib/nekos.rb', line 37

add_image_endpoint('tickle')

#titsString

Gets an image of `tits`

Returns:

  • (String)

    the image URL with the `tits` type.


60
# File 'lib/nekos.rb', line 60

add_image_endpoint('tits')

#trapString

Gets an image of `trap`

Returns:

  • (String)

    the image URL with the `trap` type.


24
# File 'lib/nekos.rb', line 24

add_image_endpoint('trap')

#waifuString

Gets an image of `waifu`

Returns:

  • (String)

    the image URL with the `waifu` type.


67
# File 'lib/nekos.rb', line 67

add_image_endpoint('waifu')

#wallpaperString

Gets an image of `wallpaper`

Returns:

  • (String)

    the image URL with the `wallpaper` type.


33
# File 'lib/nekos.rb', line 33

add_image_endpoint('wallpaper')

#whyString

Gets a random question

Returns:

  • (String)

    the question


120
121
122
# File 'lib/nekos.rb', line 120

def why
  API.get('why')['why']
end

#yuriString

Gets an image of `yuri`

Returns:

  • (String)

    the image URL with the `yuri` type.


23
# File 'lib/nekos.rb', line 23

add_image_endpoint('yuri')