Class: Arena::Story

Inherits:
Base
  • Object
show all
Includes:
Creatable
Defined in:
lib/arena/story.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods included from Creatable

#updated_at

Methods inherited from Base

attr_reader, #initialize

Constructor Details

This class inherits a constructor from Arena::Base

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



12
13
14
# File 'lib/arena/story.rb', line 12

def action
  @action
end

#bulletin_idObject (readonly)

Returns the value of attribute bulletin_id.



12
13
14
# File 'lib/arena/story.rb', line 12

def bulletin_id
  @bulletin_id
end

#connectorObject (readonly)

Returns the value of attribute connector.



12
13
14
# File 'lib/arena/story.rb', line 12

def connector
  @connector
end

#created_atObject (readonly)

Returns the value of attribute created_at.



12
13
14
# File 'lib/arena/story.rb', line 12

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id.



12
13
14
# File 'lib/arena/story.rb', line 12

def id
  @id
end

Instance Method Details

#userObject



14
15
16
# File 'lib/arena/story.rb', line 14

def user
  @user ||= Arena::User.new(@attrs["user"])
end