Class: GrubY::Gift

Inherits:
BaseObject show all
Defined in:
lib/gruubY/types/bound_entities.rb

Instance Attribute Summary

Attributes inherited from BaseObject

#api, #client

Instance Method Summary collapse

Methods inherited from BaseObject

#[], #dig, field_names, fields, #initialize, #method_missing, #respond_to_missing?, #to_h

Constructor Details

This class inherits a constructor from GrubY::BaseObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GrubY::BaseObject

Instance Method Details

#buy(**opts) ⇒ Object



216
217
218
# File 'lib/gruubY/types/bound_entities.rb', line 216

def buy(**opts)
  call_raw_api("sendGift", gift_payload.merge(opts))
end

#convertObject



200
201
202
# File 'lib/gruubY/types/bound_entities.rb', line 200

def convert
  call_raw_api("convertGiftToStars", gift_payload)
end

#get_auction_stateObject



224
225
226
# File 'lib/gruubY/types/bound_entities.rb', line 224

def get_auction_state
  call_raw_api("getGiftAuctionState", gift_payload)
end

#hideObject



196
197
198
# File 'lib/gruubY/types/bound_entities.rb', line 196

def hide
  call_raw_api("hideGift", gift_payload)
end

#send(user_id:, **opts) ⇒ Object



220
221
222
# File 'lib/gruubY/types/bound_entities.rb', line 220

def send(user_id:, **opts)
  call_raw_api("sendGift", gift_payload.merge(user_id: user_id).merge(opts))
end

#send_purchase_offer(**opts) ⇒ Object



228
229
230
# File 'lib/gruubY/types/bound_entities.rb', line 228

def send_purchase_offer(**opts)
  call_raw_api("sendGiftPurchaseOffer", gift_payload.merge(opts))
end

#showObject



192
193
194
# File 'lib/gruubY/types/bound_entities.rb', line 192

def show
  call_raw_api("showGift", gift_payload)
end

#transfer(user_id:, **opts) ⇒ Object



208
209
210
# File 'lib/gruubY/types/bound_entities.rb', line 208

def transfer(user_id:, **opts)
  call_raw_api("transferGift", gift_payload.merge(user_id: user_id).merge(opts))
end

#upgrade(**opts) ⇒ Object



204
205
206
# File 'lib/gruubY/types/bound_entities.rb', line 204

def upgrade(**opts)
  call_raw_api("upgradeGift", gift_payload.merge(opts))
end

#wearObject



212
213
214
# File 'lib/gruubY/types/bound_entities.rb', line 212

def wear
  call_raw_api("setProfileGift", gift_payload)
end