Class: Synapse::Subnets

Inherits:
Object
  • Object
show all
Defined in:
lib/synapse_api/subnets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(limit:, page:, page_count:, subnets_count:, payload:, node_id:) ⇒ Subnets

Returns a new instance of Subnets.



7
8
9
10
11
12
13
14
# File 'lib/synapse_api/subnets.rb', line 7

def initialize(limit:, page:, page_count:, subnets_count:, payload:, node_id:)
  @page = page
  @limit = limit
  @subnets_count = subnets_count
  @payload = payload
  @page_count = page_count
  @node_id = node_id
end

Instance Attribute Details

#limitObject

Returns the value of attribute limit.



5
6
7
# File 'lib/synapse_api/subnets.rb', line 5

def limit
  @limit
end

#node_idObject

Returns the value of attribute node_id.



5
6
7
# File 'lib/synapse_api/subnets.rb', line 5

def node_id
  @node_id
end

#pageObject

Returns the value of attribute page.



5
6
7
# File 'lib/synapse_api/subnets.rb', line 5

def page
  @page
end

#page_countObject

Returns the value of attribute page_count.



5
6
7
# File 'lib/synapse_api/subnets.rb', line 5

def page_count
  @page_count
end

#payloadObject

Returns the value of attribute payload.



5
6
7
# File 'lib/synapse_api/subnets.rb', line 5

def payload
  @payload
end

#subnets_countObject

Returns the value of attribute subnets_count.



5
6
7
# File 'lib/synapse_api/subnets.rb', line 5

def subnets_count
  @subnets_count
end