Class: Fleakr::Objects::Group

Inherits:
Object
  • Object
show all
Includes:
Support::Object
Defined in:
lib/fleakr/objects/group.rb

Overview

Group

Accessors

id

This group’s ID

name

The name of the group

Associations

photos

The photos that are in this group

Instance Method Summary collapse

Methods included from Support::Object

included

Instance Method Details

#adult?Boolean

Is this group adult-only? (e.g. only 18+ allowed to view)

Returns:

  • (Boolean)


30
31
32
# File 'lib/fleakr/objects/group.rb', line 30

def adult?
  (adult_flag == '1')
end