mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	just send strings rather than casting to symbol
This commit is contained in:
		
							parent
							
								
									52b3199555
								
							
						
					
					
						commit
						ea6655838a
					
				
					 2 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -39,7 +39,7 @@ module Fog
 | 
			
		|||
    def attributes
 | 
			
		||||
      attributes = {}
 | 
			
		||||
      for attribute in self.class.attributes
 | 
			
		||||
        attributes[attribute] = send(:"#{attribute}")
 | 
			
		||||
        attributes[attribute] = send("#{attribute}")
 | 
			
		||||
      end
 | 
			
		||||
      attributes
 | 
			
		||||
    end
 | 
			
		||||
| 
						 | 
				
			
			@ -47,9 +47,9 @@ module Fog
 | 
			
		|||
    def merge_attributes(new_attributes = {})
 | 
			
		||||
      for key, value in new_attributes
 | 
			
		||||
        if aliased_key = self.class.aliases[key]
 | 
			
		||||
          send(:"#{aliased_key}=", value)
 | 
			
		||||
          send("#{aliased_key}=", value)
 | 
			
		||||
        else
 | 
			
		||||
          send(:"#{key}=", value)
 | 
			
		||||
          send("#{key}=", value)
 | 
			
		||||
        end
 | 
			
		||||
      end
 | 
			
		||||
      self
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,7 +34,7 @@ module Fog
 | 
			
		|||
    def attributes
 | 
			
		||||
      attributes = {}
 | 
			
		||||
      for attribute in self.class.attributes
 | 
			
		||||
        attributes[attribute] = send(:"#{attribute}")
 | 
			
		||||
        attributes[attribute] = send("#{attribute}")
 | 
			
		||||
      end
 | 
			
		||||
      attributes
 | 
			
		||||
    end
 | 
			
		||||
| 
						 | 
				
			
			@ -42,9 +42,9 @@ module Fog
 | 
			
		|||
    def merge_attributes(new_attributes = {})
 | 
			
		||||
      for key, value in new_attributes
 | 
			
		||||
        if aliased_key = self.class.aliases[key]
 | 
			
		||||
          send(:"#{aliased_key}=", value)
 | 
			
		||||
          send("#{aliased_key}=", value)
 | 
			
		||||
        else
 | 
			
		||||
          send(:"#{key}=", value)
 | 
			
		||||
          send("#{key}=", value)
 | 
			
		||||
        end
 | 
			
		||||
      end
 | 
			
		||||
      self
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue