Class: ZombieBattleground::Api::Requests::GetCardRequest

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations, RequestHelper, ValidationHelper
Defined in:
lib/zombie_battleground/api/requests/get_card_request.rb

Overview

Request validator for GetCard

Constant Summary

Constants included from RequestHelper

RequestHelper::BLACKLISTED_INSTANCE_VARIABLES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RequestHelper

#params

Instance Attribute Details

#mould_idString

Card’s mould_id

Examples:

request.id #=> "1"

Returns:

  • (String)


30
31
32
# File 'lib/zombie_battleground/api/requests/get_card_request.rb', line 30

def mould_id
  @mould_id
end

#versionString

Deck’s version

Examples:

request.id #=> "v3"

Returns:

  • (String)


42
43
44
# File 'lib/zombie_battleground/api/requests/get_card_request.rb', line 42

def version
  @version
end

Instance Method Details

#uriString

The URI for the endpoint

Examples:

request.uri # => "card"

Returns:

  • (String)


56
57
58
# File 'lib/zombie_battleground/api/requests/get_card_request.rb', line 56

def uri
  'card'
end