Class: Casper::Entity::DeployExecutableItemInternal
- Inherits:
-
Object
- Object
- Casper::Entity::DeployExecutableItemInternal
- Defined in:
- lib/entity/deploy_executable_item_internal.rb
Direct Known Subclasses
DeployExecutableTransfer, ModuleBytes, StoredContractByHash, StoredContractByName, StoredVersionedContractByHash, StoredVersionedContractByName
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
Instance Method Summary collapse
- #get_arg_by_name(arg) ⇒ DeployNamedArg
- #get_args ⇒ Array<DeployNamedArg>
-
#initialize(deploy_named_args = []) ⇒ DeployExecutableItemInternal
constructor
A new instance of DeployExecutableItemInternal.
- #set_arg(deploy_named_arg) ⇒ Object
Constructor Details
#initialize(deploy_named_args = []) ⇒ DeployExecutableItemInternal
Returns a new instance of DeployExecutableItemInternal.
7 8 9 |
# File 'lib/entity/deploy_executable_item_internal.rb', line 7 def initialize(deploy_named_args = []) @args = deploy_named_args end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
6 7 8 |
# File 'lib/entity/deploy_executable_item_internal.rb', line 6 def args @args end |
Instance Method Details
#get_arg_by_name(arg) ⇒ DeployNamedArg
17 18 19 |
# File 'lib/entity/deploy_executable_item_internal.rb', line 17 def get_arg_by_name(arg) @args.include?(arg) == true ? arg : nil end |
#get_args ⇒ Array<DeployNamedArg>
12 13 14 |
# File 'lib/entity/deploy_executable_item_internal.rb', line 12 def get_args @args end |
#set_arg(deploy_named_arg) ⇒ Object
21 22 23 |
# File 'lib/entity/deploy_executable_item_internal.rb', line 21 def set_arg(deploy_named_arg) @args << [deploy_named_arg] end |