Module: ODDB::State::Limit

Includes:
Admin::LoginMethods
Included in:
Analysis::Limit, Companies::Limit, Doctors::Limit, Drugs::Limit, Hospitals::Limit, Interactions::Limit, Migel::Limit, User::Limit
Defined in:
src/state/limit.rb,
src/state/global_predefine.rb

Constant Summary

VIEW =
View::Limit

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods included from Admin::LoginMethods

#autologin, #login

Class Method Details

+ (Object) price(days)



14
15
16
# File 'src/state/limit.rb', line 14

def Limit.price(days)
  QUERY_LIMIT_PRICES[days.to_i].to_f
end

Instance Method Details

- (Object) init



17
18
19
# File 'src/state/limit.rb', line 17

def init
  @desired_input = @session.valid_input
end

- (Object) price(days)



20
21
22
# File 'src/state/limit.rb', line 20

def price(days)
  Limit.price(days)
end