Class: STDDAPI::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/stdd_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute customer_id.



111
112
113
# File 'lib/stdd_api.rb', line 111

def customer_id
  @customer_id
end

#idObject

Returns the value of attribute id.



111
112
113
# File 'lib/stdd_api.rb', line 111

def id
  @id
end

#nameObject

Returns the value of attribute name.



111
112
113
# File 'lib/stdd_api.rb', line 111

def name
  @name
end

Instance Method Details

#to_jsonObject



112
113
114
# File 'lib/stdd_api.rb', line 112

def to_json
  {'name' => @name,'customer_id:' => customer_id}.to_json
end