Class: IssueStruct

Inherits:
Struct
  • Object
show all
Defined in:
lib/XSpear/XSpearRepoter.rb,
lib/XSpear/XSpearRepoter.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



4
5
6
# File 'lib/XSpear/XSpearRepoter.rb', line 4

def description
  @description
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



4
5
6
# File 'lib/XSpear/XSpearRepoter.rb', line 4

def id
  @id
end

#issueObject

Returns the value of attribute issue

Returns:

  • (Object)

    the current value of issue



4
5
6
# File 'lib/XSpear/XSpearRepoter.rb', line 4

def issue
  @issue
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



4
5
6
# File 'lib/XSpear/XSpearRepoter.rb', line 4

def method
  @method
end

#paramObject

Returns the value of attribute param

Returns:

  • (Object)

    the current value of param



4
5
6
# File 'lib/XSpear/XSpearRepoter.rb', line 4

def param
  @param
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



4
5
6
# File 'lib/XSpear/XSpearRepoter.rb', line 4

def payload
  @payload
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of 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