Class: GatherContent::Api::Status
- Defined in:
- lib/gather_content/api/status.rb
Instance Attribute Summary collapse
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#status_id ⇒ Object
Returns the value of attribute status_id.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(project_id, status_id, data = nil) ⇒ Status
constructor
A new instance of Status.
Methods inherited from Base
#fetch, #get, #post, #post_json, #reset
Constructor Details
#initialize(project_id, status_id, data = nil) ⇒ Status
Returns a new instance of Status.
6 7 8 9 10 11 12 |
# File 'lib/gather_content/api/status.rb', line 6 def initialize(project_id, status_id, data = nil) raise ArgumentError, "project_id is required!" if project_id.nil? raise ArgumentError, "status_id is required!" if status_id.nil? @project_id = project_id @status_id = status_id @data = data end |
Instance Attribute Details
#project_id ⇒ Object
Returns the value of attribute project_id.
4 5 6 |
# File 'lib/gather_content/api/status.rb', line 4 def project_id @project_id end |
#status_id ⇒ Object
Returns the value of attribute status_id.
4 5 6 |
# File 'lib/gather_content/api/status.rb', line 4 def status_id @status_id end |
Instance Method Details
#[](key) ⇒ Object
14 15 16 |
# File 'lib/gather_content/api/status.rb', line 14 def [](key) fetch[key] end |