Class: Link
- Inherits:
-
OpenShift::Model
- Object
- OpenShift::Model
- Link
- Defined in:
- app/models/link.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
Returns the value of attribute href.
-
#method ⇒ Object
Returns the value of attribute method.
-
#optional_params ⇒ Object
Returns the value of attribute optional_params.
-
#rel ⇒ Object
Returns the value of attribute rel.
-
#required_params ⇒ Object
Returns the value of attribute required_params.
Instance Method Summary collapse
-
#initialize(rel, method, href, required_params = nil, optional_params = nil) ⇒ Link
constructor
A new instance of Link.
Constructor Details
#initialize(rel, method, href, required_params = nil, optional_params = nil) ⇒ Link
Returns a new instance of Link.
4 5 6 7 8 9 10 |
# File 'app/models/link.rb', line 4 def initialize(rel, method, href, required_params=nil, optional_params=nil) self.rel = rel self.method = method self.href = href.to_s self.required_params = required_params || Array.new self.optional_params = optional_params || Array.new end |
Instance Attribute Details
#href ⇒ Object
Returns the value of attribute href.
2 3 4 |
# File 'app/models/link.rb', line 2 def href @href end |
#method ⇒ Object
Returns the value of attribute method.
2 3 4 |
# File 'app/models/link.rb', line 2 def method @method end |
#optional_params ⇒ Object
Returns the value of attribute optional_params.
2 3 4 |
# File 'app/models/link.rb', line 2 def optional_params @optional_params end |
#rel ⇒ Object
Returns the value of attribute rel.
2 3 4 |
# File 'app/models/link.rb', line 2 def rel @rel end |
#required_params ⇒ Object
Returns the value of attribute required_params.
2 3 4 |
# File 'app/models/link.rb', line 2 def required_params @required_params end |