Class: TorigoyaKit::RunInstruction
- Inherits:
-
Object
- Object
- TorigoyaKit::RunInstruction
- Defined in:
- lib/torigoya_kit/ticket.rb
Instance Attribute Summary collapse
-
#inputs ⇒ Object
readonly
Returns the value of attribute inputs.
Instance Method Summary collapse
- #==(rhs) ⇒ Object
-
#initialize(inputs) ⇒ RunInstruction
constructor
A new instance of RunInstruction.
- #to_hash ⇒ Object
- #to_msgpack(out = '') ⇒ Object
Constructor Details
#initialize(inputs) ⇒ RunInstruction
Returns a new instance of RunInstruction.
166 167 168 169 170 |
# File 'lib/torigoya_kit/ticket.rb', line 166 def initialize(inputs) @inputs = inputs # Array!Input validate end |
Instance Attribute Details
#inputs ⇒ Object (readonly)
Returns the value of attribute inputs.
171 172 173 |
# File 'lib/torigoya_kit/ticket.rb', line 171 def inputs @inputs end |
Instance Method Details
#==(rhs) ⇒ Object
181 182 183 |
# File 'lib/torigoya_kit/ticket.rb', line 181 def ==(rhs) return @inputs == rhs.inputs end |
#to_hash ⇒ Object
173 174 175 |
# File 'lib/torigoya_kit/ticket.rb', line 173 def to_hash return [@inputs.map {|x| x.to_hash}] end |
#to_msgpack(out = '') ⇒ Object
177 178 179 |
# File 'lib/torigoya_kit/ticket.rb', line 177 def to_msgpack(out = '') return to_hash.to_msgpack(out) end |