Class: ActiveMocker::ModelSchema::Methods::Arguments
- Inherits:
-
Object
- Object
- ActiveMocker::ModelSchema::Methods::Arguments
- Defined in:
- lib/active_mocker/model_schema.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
-
#initialize(arguments) ⇒ Arguments
constructor
A new instance of Arguments.
- #passable ⇒ Object
- #to_hash ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(arguments) ⇒ Arguments
Returns a new instance of Arguments.
257 258 259 |
# File 'lib/active_mocker/model_schema.rb', line 257 def initialize(arguments) @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
255 256 257 |
# File 'lib/active_mocker/model_schema.rb', line 255 def arguments @arguments end |
Instance Method Details
#passable ⇒ Object
269 270 271 |
# File 'lib/active_mocker/model_schema.rb', line 269 def passable Reparameterize.call(arguments, param_list: true) end |
#to_hash ⇒ Object
261 262 263 |
# File 'lib/active_mocker/model_schema.rb', line 261 def to_hash @arguments end |
#to_s ⇒ Object
265 266 267 |
# File 'lib/active_mocker/model_schema.rb', line 265 def to_s Reparameterize.call(arguments) end |