Class: Dicts::RejectType

Inherits:
Dict
  • Object
show all
Defined in:
app/dicts/reject_type.rb

Constant Summary collapse

LEASE_INQUIRY =

какой-то юзер оставляет заявку на аренду

new 1, 'user_lease_inquiry',  '::Lease::Inquiry'
LIST_YOR_BOAT =

какой-то юзер пытается добавить лодку с помощью фичи LIST YOUR BOAT

new 2, 'user_list_your_boat', '::Boat'
CREATE_BOAT =

агент пытается добавить лодку

new 3, 'agent_create_boat',   '::Boat'
UPDATE_BOAT =

агент пытается обновить лодку

new 4, 'agent_update_boat',   '::Boat'

Instance Attribute Summary collapse

Attributes inherited from Dict

#id, #index

Instance Method Summary collapse

Methods inherited from Dict

all, find, find_by_index, where

Constructor Details

#initialize(id, index, type) ⇒ RejectType



6
7
8
9
# File 'app/dicts/reject_type.rb', line 6

def initialize(id, index, type)
  @type = type
  super id, index
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'app/dicts/reject_type.rb', line 4

def type
  @type
end