Class: STDDAPI::Project
- Inherits:
-
Object
- Object
- STDDAPI::Project
- Defined in:
- lib/stdd_api.rb
Instance Attribute Summary collapse
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(customer_id, name) ⇒ Project
constructor
A new instance of Project.
- #to_json ⇒ Object
Constructor Details
#initialize(customer_id, name) ⇒ Project
Returns a new instance of Project.
107 108 109 110 |
# File 'lib/stdd_api.rb', line 107 def initialize(customer_id,name) @name = name @customer_id = customer_id end |
Instance Attribute Details
#customer_id ⇒ Object
Returns the value of attribute customer_id.
111 112 113 |
# File 'lib/stdd_api.rb', line 111 def customer_id @customer_id end |
#id ⇒ Object
Returns the value of attribute id.
111 112 113 |
# File 'lib/stdd_api.rb', line 111 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
111 112 113 |
# File 'lib/stdd_api.rb', line 111 def name @name end |
Instance Method Details
#to_json ⇒ Object
112 113 114 |
# File 'lib/stdd_api.rb', line 112 def to_json {'name' => @name,'customer_id:' => customer_id}.to_json end |