Class: QiitaScouter::User

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

Overview

QiitaScouter::User

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ User

Returns a new instance of User.



6
7
8
9
10
# File 'lib/models/user.rb', line 6

def initialize(options = {})
  @url_name = options['url_name']
  @followers = options['followers_count']
  @items = options['items_count']
end

Instance Attribute Details

#followersObject

Returns the value of attribute followers.



4
5
6
# File 'lib/models/user.rb', line 4

def followers
  @followers
end

#itemsObject

Returns the value of attribute items.



4
5
6
# File 'lib/models/user.rb', line 4

def items
  @items
end

#url_nameObject

Returns the value of attribute url_name.



4
5
6
# File 'lib/models/user.rb', line 4

def url_name
  @url_name
end