Class: Dibuk::Request::Links
Instance Method Summary collapse
- #action ⇒ String
- #body ⇒ Object
-
#initialize(user, item) ⇒ Links
constructor
A new instance of Links.
Methods inherited from Base
Constructor Details
#initialize(user, item) ⇒ Links
Returns a new instance of Links.
5 6 7 8 |
# File 'lib/dibuk/request/links.rb', line 5 def initialize(user, item) @item = item @user = user end |
Instance Method Details
#action ⇒ String
21 22 23 |
# File 'lib/dibuk/request/links.rb', line 21 def action 'downloadLinks' end |
#body ⇒ Object
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 |