Method: RestReply#initialize
- Defined in:
- app/models/rest_reply.rb
#initialize(status = nil, type = nil, data = nil) ⇒ RestReply
Returns a new instance of RestReply.
5 6 7 8 9 10 11 12 |
# File 'app/models/rest_reply.rb', line 5 def initialize(status=nil, type=nil, data=nil) self.status = status self.type = type self.data = data self. = [] self.version = $requested_api_version.to_s self.supported_api_versions = BaseController::SUPPORTED_API_VERSIONS end |