Class: LegacyRequest
- Inherits:
-
OpenShift::Model
- Object
- OpenShift::Model
- LegacyRequest
- Defined in:
- app/models/legacy_request.rb
Constant Summary collapse
- APP_MAX_LENGTH =
32
- NS_MAX_LENGTH =
16
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#alter ⇒ Object
Returns the value of attribute alter.
-
#api ⇒ Object
Returns the value of attribute api.
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#app_uuid ⇒ Object
Returns the value of attribute app_uuid.
-
#cart_type ⇒ Object
Returns the value of attribute cart_type.
-
#cartridge ⇒ Object
Returns the value of attribute cartridge.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#delete ⇒ Object
Returns the value of attribute delete.
-
#invalid_keys ⇒ Object
readonly
Returns the value of attribute invalid_keys.
-
#key_name ⇒ Object
Returns the value of attribute key_name.
-
#key_type ⇒ Object
Returns the value of attribute key_type.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#node_profile ⇒ Object
Returns the value of attribute node_profile.
-
#rhlogin ⇒ Object
Returns the value of attribute rhlogin.
-
#server_alias ⇒ Object
Returns the value of attribute server_alias.
-
#ssh ⇒ Object
Returns the value of attribute ssh.
Instance Method Summary collapse
- #attributes=(hash) ⇒ Object
-
#initialize ⇒ LegacyRequest
constructor
A new instance of LegacyRequest.
Constructor Details
#initialize ⇒ LegacyRequest
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
#action ⇒ Object
Returns the value of attribute action.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def action @action end |
#alter ⇒ Object
Returns the value of attribute alter.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def alter @alter end |
#api ⇒ Object
Returns the value of attribute api.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def api @api end |
#app_name ⇒ Object
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_uuid ⇒ Object
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_type ⇒ Object
Returns the value of attribute cart_type.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def cart_type @cart_type end |
#cartridge ⇒ Object
Returns the value of attribute cartridge.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def cartridge @cartridge end |
#debug ⇒ Object
Returns the value of attribute debug.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def debug @debug end |
#delete ⇒ Object
Returns the value of attribute delete.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def delete @delete end |
#invalid_keys ⇒ Object (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_name ⇒ Object
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_type ⇒ Object
Returns the value of attribute key_type.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def key_type @key_type end |
#namespace ⇒ Object
Returns the value of attribute namespace.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def namespace @namespace end |
#node_profile ⇒ Object
Returns the value of attribute node_profile.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def node_profile @node_profile end |
#rhlogin ⇒ Object
Returns the value of attribute rhlogin.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def rhlogin @rhlogin end |
#server_alias ⇒ Object
Returns the value of attribute server_alias.
2 3 4 |
# File 'app/models/legacy_request.rb', line 2 def server_alias @server_alias end |
#ssh ⇒ Object
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 |