Class: DiandianOAuth::API::Interface::Param
- Inherits:
-
Object
- Object
- DiandianOAuth::API::Interface::Param
- Defined in:
- lib/diandian_oauth/api/interface.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ required: true }
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#required ⇒ Object
Returns the value of attribute required.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Param
constructor
A new instance of Param.
Constructor Details
#initialize(name, options = {}) ⇒ Param
Returns a new instance of Param.
35 36 37 38 39 |
# File 'lib/diandian_oauth/api/interface.rb', line 35 def initialize name, = {} = DEFAULT_OPTIONS.merge( ) @name = name @required = [:required] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
32 33 34 |
# File 'lib/diandian_oauth/api/interface.rb', line 32 def name @name end |
#required ⇒ Object
Returns the value of attribute required.
32 33 34 |
# File 'lib/diandian_oauth/api/interface.rb', line 32 def required @required end |