Class: EditNewActionAdapter
- Inherits:
-
ActionAdapter
- Object
- ActionAdapter
- EditNewActionAdapter
- Defined in:
- lib/ribit/action.rb
Instance Method Summary collapse
- #get_url ⇒ Object
-
#initialize(category, name, prevPageID) ⇒ EditNewActionAdapter
constructor
A new instance of EditNewActionAdapter.
Methods inherited from ActionAdapter
Constructor Details
#initialize(category, name, prevPageID) ⇒ EditNewActionAdapter
Returns a new instance of EditNewActionAdapter.
1011 1012 1013 1014 1015 |
# File 'lib/ribit/action.rb', line 1011 def initialize( category, name, prevPageID ) @category = category @name = name @prevPageID = prevPageID end |
Instance Method Details
#get_url ⇒ Object
1018 1019 1020 1021 1022 1023 1024 1025 |
# File 'lib/ribit/action.rb', line 1018 def get_url propertyList = PropertyList.new propertyList.put( Constants::PAGE_ID_REQUEST_PARAM_NAME, Constants::NEW_PAGE_ID ) propertyList.put( Constants::CATEGORY_REQUEST_PARAM_NAME, @category ) propertyList.put( Constants::PAGE_NAME_REQUEST_PARAM_NAME, @name ) propertyList.put( Constants::PREV_REQUEST_PARAM_NAME, @prevPageID ) return build_url( EditAction::ID, propertyList ) end |