Class: JIJI::Agent::Property
- Inherits:
-
Object
- Object
- JIJI::Agent::Property
- Includes:
- Util::JsonSupport, Util::Model
- Defined in:
- lib/jiji/agent/agent.rb
Overview
エージェントのプロパティ
Instance Attribute Summary collapse
-
#default ⇒ Object
初期値.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
UIでの表示用の名前.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id, name, default_value = nil, type = :string) ⇒ Property
constructor
A new instance of Property.
Methods included from Util::JsonSupport
Methods included from Util::Model
Constructor Details
#initialize(id, name, default_value = nil, type = :string) ⇒ Property
Returns a new instance of Property.
50 51 52 53 54 55 |
# File 'lib/jiji/agent/agent.rb', line 50 def initialize( id, name, default_value=nil, type=:string ) @id = id @name = name @default = default_value @type = type end |
Instance Attribute Details
#default ⇒ Object
初期値
58 59 60 |
# File 'lib/jiji/agent/agent.rb', line 58 def default @default end |
#id ⇒ Object
Returns the value of attribute id.
56 57 58 |
# File 'lib/jiji/agent/agent.rb', line 56 def id @id end |
#name ⇒ Object
UIでの表示用の名前
57 58 59 |
# File 'lib/jiji/agent/agent.rb', line 57 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
59 60 61 |
# File 'lib/jiji/agent/agent.rb', line 59 def type @type end |