Class: IssueStruct
- Inherits:
-
Struct
- Object
- Struct
- IssueStruct
- Defined in:
- lib/XSpear/XSpearRepoter.rb,
lib/XSpear/XSpearRepoter.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#issue ⇒ Object
Returns the value of attribute issue.
-
#method ⇒ Object
Returns the value of attribute method.
-
#param ⇒ Object
Returns the value of attribute param.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
4 5 6 |
# File 'lib/XSpear/XSpearRepoter.rb', line 4 def description @description end |
#id ⇒ Object
Returns the value of attribute id
4 5 6 |
# File 'lib/XSpear/XSpearRepoter.rb', line 4 def id @id end |
#issue ⇒ Object
Returns the value of attribute issue
4 5 6 |
# File 'lib/XSpear/XSpearRepoter.rb', line 4 def issue @issue end |
#method ⇒ Object
Returns the value of attribute method
4 5 6 |
# File 'lib/XSpear/XSpearRepoter.rb', line 4 def method @method end |
#param ⇒ Object
Returns the value of attribute param
4 5 6 |
# File 'lib/XSpear/XSpearRepoter.rb', line 4 def param @param end |
#payload ⇒ Object
Returns the value of attribute payload
4 5 6 |
# File 'lib/XSpear/XSpearRepoter.rb', line 4 def payload @payload end |
#type ⇒ Object
Returns the value of attribute type
4 5 6 |
# File 'lib/XSpear/XSpearRepoter.rb', line 4 def type @type end |
Class Method Details
.json_create(o) ⇒ Object
11 12 13 |
# File 'lib/XSpear/XSpearRepoter.rb', line 11 def self.json_create(o) new(o['id'], o['type'], o['issue'], o['method'], o['param'], o['payload'], o['description']) end |
Instance Method Details
#to_json(*a) ⇒ Object
6 7 8 9 |
# File 'lib/XSpear/XSpearRepoter.rb', line 6 def to_json(*a) # NO TYPE ISSUE METHOD PARAM PAYLOAD DESCRIPTION {:id => self.id, :type => self.type, :issue => self.issue, :method => self.method, :param => self.param, :payload => self.payload, :description => self.description}.to_json(*a) end |