Class: Snapcat::Friend

Inherits:
Object
  • Object
show all
Defined in:
lib/snapcat/friend.rb

Defined Under Namespace

Classes: Type

Constant Summary collapse

ALLOWED_FIELD_CONVERSIONS =
{
  can_see_custom_stories: :can_see_custom_stories,
  display: :display_name,
  name: :username,
  type: :type
}

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Friend

Returns a new instance of Friend.



12
13
14
15
# File 'lib/snapcat/friend.rb', line 12

def initialize(data = {})
  humanize_data(data)
  @type = Type.new(@type)
end