Sha256: f819091e2426b7e1ad43569ee83c34f12aab5876e3dda1181423942ec2afc1e8
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
class DeleteUserStatus attr_accessor :result, :success, :error # :internal => :external def self.attribute_map { :result => :result, :success => :success, :error => :error } end def initialize(attributes = {}) # Morph attribute keys into undescored rubyish style if attributes.to_s != "" if DeleteUserStatus.attribute_map["result".to_sym] != nil name = "result".to_sym value = attributes["result"] send("#{name}=", value) if self.respond_to?(name) end if DeleteUserStatus.attribute_map["success".to_sym] != nil name = "success".to_sym value = attributes["success"] send("#{name}=", value) if self.respond_to?(name) end if DeleteUserStatus.attribute_map["error".to_sym] != nil name = "error".to_sym value = attributes["error"] send("#{name}=", value) if self.respond_to?(name) end end end def to_body body = {} DeleteUserStatus.attribute_map.each_pair do |key,value| body[value] = self.send(key) unless self.send(key).nil? end body end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
subtledata-0.0.5 | models/deleteuserstatus.rb |
subtledata-0.0.3 | models/deleteuserstatus.rb |