Class: BadgevilleBerlin::Player
- Inherits:
-
BaseResource
- Object
- ActiveResource::Base
- BaseResource
- BadgevilleBerlin::Player
- Defined in:
- lib/badgeville_berlin/player.rb
Constant Summary collapse
- COMPLEX_ATTRIBUTES =
[:custom, :preferences]
- CUSTOM_REQUEST_KEYS =
Enables revising Berlin JSON response key names to match what is expected by model-level logic. (e.g. Berlin JSON payload returns the player’s nickname under the key :nick_name, but the Player model expects it as :nickname without the underscore.)
{:nick_name => :nickname, :teams => :team_ids}
Method Summary
Methods inherited from BaseResource
#customize_keys_for_request, #encode, #errors, #initialize, #load, #load_remote_errors, #sanitize_request
Constructor Details
This class inherits a constructor from BadgevilleBerlin::BaseResource