Class: Dibuk::Request::Links

Inherits:
Base
  • Object
show all
Defined in:
lib/dibuk/request/links.rb

Instance Method Summary collapse

Methods inherited from Base

#headers, #method

Constructor Details

#initialize(user, item) ⇒ Links

Returns a new instance of Links.

Parameters:



5
6
7
8
# File 'lib/dibuk/request/links.rb', line 5

def initialize(user, item)
  @item = item
  @user = user
end

Instance Method Details

#actionString

Returns:

  • (String)


21
22
23
# File 'lib/dibuk/request/links.rb', line 21

def action
  'downloadLinks'
end

#bodyObject



10
11
12
13
14
15
16
17
18
# File 'lib/dibuk/request/links.rb', line 10

def body
  {
      :book_id => @item.id,
      :user_id => @user.id,
      :user_name => @user.name,
      :user_surname => @user.surname,
      :user_email => @user.email,
  }
end