Class: MendixBridge::Model::NavigationProfile

Inherits:
Data
  • Object
show all
Defined in:
lib/mendix_bridge/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#home_pageObject (readonly)

Returns the value of attribute home_page

Returns:

  • (Object)

    the current value of home_page



144
145
146
# File 'lib/mendix_bridge/model.rb', line 144

def home_page
  @home_page
end

#itemsObject (readonly)

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



144
145
146
# File 'lib/mendix_bridge/model.rb', line 144

def items
  @items
end

#login_pageObject (readonly)

Returns the value of attribute login_page

Returns:

  • (Object)

    the current value of login_page



144
145
146
# File 'lib/mendix_bridge/model.rb', line 144

def 
  @login_page
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



144
145
146
# File 'lib/mendix_bridge/model.rb', line 144

def name
  @name
end

#not_found_pageObject (readonly)

Returns the value of attribute not_found_page

Returns:

  • (Object)

    the current value of not_found_page



144
145
146
# File 'lib/mendix_bridge/model.rb', line 144

def not_found_page
  @not_found_page
end

#role_home_pagesObject (readonly)

Returns the value of attribute role_home_pages

Returns:

  • (Object)

    the current value of role_home_pages



144
145
146
# File 'lib/mendix_bridge/model.rb', line 144

def role_home_pages
  @role_home_pages
end

Instance Method Details

#to_hObject



152
153
154
155
156
157
158
159
160
161
# File 'lib/mendix_bridge/model.rb', line 152

def to_h
  {
    name:,
    home_page:,
    role_home_pages: role_home_pages.map(&:to_h),
    login_page:,
    not_found_page:,
    items: items.map(&:to_h)
  }.compact
end