Class: LegacyRequest

Inherits:
OpenShift::Model
  • Object
show all
Defined in:
app/models/legacy_request.rb

Constant Summary collapse

APP_MAX_LENGTH =
32
NS_MAX_LENGTH =
16

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLegacyRequest

Returns a new instance of LegacyRequest.



8
9
10
# File 'app/models/legacy_request.rb', line 8

def initialize
  @invalid_keys = []
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def action
  @action
end

#alterObject

Returns the value of attribute alter.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def alter
  @alter
end

#apiObject

Returns the value of attribute api.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def api
  @api
end

#app_nameObject

Returns the value of attribute app_name.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def app_name
  @app_name
end

#app_uuidObject

Returns the value of attribute app_uuid.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def app_uuid
  @app_uuid
end

#cart_typeObject

Returns the value of attribute cart_type.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def cart_type
  @cart_type
end

#cartridgeObject

Returns the value of attribute cartridge.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def cartridge
  @cartridge
end

#debugObject

Returns the value of attribute debug.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def debug
  @debug
end

#deleteObject

Returns the value of attribute delete.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def delete
  @delete
end

#invalid_keysObject (readonly)

Returns the value of attribute invalid_keys.



3
4
5
# File 'app/models/legacy_request.rb', line 3

def invalid_keys
  @invalid_keys
end

#key_nameObject

Returns the value of attribute key_name.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def key_name
  @key_name
end

#key_typeObject

Returns the value of attribute key_type.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def key_type
  @key_type
end

#namespaceObject

Returns the value of attribute namespace.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def namespace
  @namespace
end

#node_profileObject

Returns the value of attribute node_profile.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def node_profile
  @node_profile
end

#rhloginObject

Returns the value of attribute rhlogin.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def rhlogin
  @rhlogin
end

#server_aliasObject

Returns the value of attribute server_alias.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def server_alias
  @server_alias
end

#sshObject

Returns the value of attribute ssh.



2
3
4
# File 'app/models/legacy_request.rb', line 2

def ssh
  @ssh
end

Instance Method Details

#attributes=(hash) ⇒ Object



117
118
119
120
121
122
123
124
125
# File 'app/models/legacy_request.rb', line 117

def attributes=(hash)
  hash.each do |key,value|
    begin
      self.send("#{key}=",value)
    rescue NoMethodError => e
      @invalid_keys.push key
    end
  end
end