Class: Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Result



4
5
6
7
8
9
10
11
12
# File 'lib/remoteok/result.rb', line 4

def initialize(attrs = {})
  @id = attrs[:data]['id']
  @date = attrs[:data]['date']
  @company = attrs[:data]['company']
  @tags = attrs[:data]['tags']
  @description = attrs[:data]['description']
  @url = attrs[:data]['url']
   = attrs[:data]['logo']
end

Instance Attribute Details

#companyObject

Returns the value of attribute company.



2
3
4
# File 'lib/remoteok/result.rb', line 2

def company
  @company
end

#dateObject

Returns the value of attribute date.



2
3
4
# File 'lib/remoteok/result.rb', line 2

def date
  @date
end

#descriptionObject

Returns the value of attribute description.



2
3
4
# File 'lib/remoteok/result.rb', line 2

def description
  @description
end

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/remoteok/result.rb', line 2

def id
  @id
end

#logoObject

Returns the value of attribute logo.



2
3
4
# File 'lib/remoteok/result.rb', line 2

def 
  
end

#tagsObject

Returns the value of attribute tags.



2
3
4
# File 'lib/remoteok/result.rb', line 2

def tags
  @tags
end

#urlObject

Returns the value of attribute url.



2
3
4
# File 'lib/remoteok/result.rb', line 2

def url
  @url
end