Class: Dibuk::Request::Send
Instance Method Summary collapse
- #action ⇒ String
-
#body ⇒ Hash{Symbol->String
].
- #initialize(user, item, email) ⇒ Response constructor
Methods inherited from Base
Constructor Details
#initialize(user, item, email) ⇒ Response
7 8 9 10 11 |
# File 'lib/dibuk/request/send.rb', line 7 def initialize(user, item, email) @item = item @user = user @email = email end |
Instance Method Details
#action ⇒ String
26 27 28 |
# File 'lib/dibuk/request/send.rb', line 26 def action 'sendByEmail' end |
#body ⇒ Hash{Symbol->String
Returns ].
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/dibuk/request/send.rb', line 14 def body { :book_id => @item.id, :send_to_email => @user.email, :user_id => @user.id, :user_name => @user.name, :user_surname => @user.surname, :user_email => @user.email, } end |